1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. */ 4 5 #ifndef LIBRARIES_NACL_IO_OSDIRENT_H_ 6 #define LIBRARIES_NACL_IO_OSDIRENT_H_ 7 8 #if defined(WIN32) 9 10 #include <sys/types.h> 11 #include "sdk_util/macros.h" 12 13 struct dirent { 14 _ino_t d_ino; 15 _off_t d_off; 16 unsigned short int d_reclen; 17 char d_name[256]; 18 }; 19 20 #else 21 22 #include <sys/types.h> 23 #include <dirent.h> 24 25 #endif 26 27 #endif /* LIBRARIES_NACL_IO_OSDIRENT_H_ */ 28