Index: native_client_sdk/src/libraries/nacl_mounts/osdirent.h |
diff --git a/native_client_sdk/src/libraries/nacl_mounts/osdirent.h b/native_client_sdk/src/libraries/nacl_mounts/osdirent.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bea9500c767f5989af5ddbe1d84410b0f0ad4b0a |
--- /dev/null |
+++ b/native_client_sdk/src/libraries/nacl_mounts/osdirent.h |
@@ -0,0 +1,26 @@ |
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+#ifndef LIBRARIES_NACL_MOUNTS_OSDIRENT_H_ |
+#define LIBRARIES_NACL_MOUNTS_OSDIRENT_H_ |
+ |
+#if defined(WIN32) |
+ |
+#include <sys/types.h> |
+#include "utils/macros.h" |
+ |
+struct dirent { |
+ _ino_t d_ino; |
+ _off_t d_off; |
+ unsigned short int d_reclen; |
+ char d_name[256]; |
+}; |
+ |
+#else |
+ |
+#include <dirent.h> |
+ |
+#endif |
+ |
+#endif // LIBRARIES_NACL_MOUNTS_OSDIRENT_H_ |