aboutsummaryrefslogtreecommitdiff
path: root/system/include/libc/sys/dirent.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-24 18:41:07 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-24 18:41:07 -0700
commitf2a8bdc4c3bd88cb6a9ff85c4f2c43e9b9f77b97 (patch)
tree172b11e658bf266a001050bf90a029c36ac97bd2 /system/include/libc/sys/dirent.h
parent1c8b4752414132e27abc608dda7db8dc0268f73a (diff)
reorganize system/include
Diffstat (limited to 'system/include/libc/sys/dirent.h')
-rw-r--r--system/include/libc/sys/dirent.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/include/libc/sys/dirent.h b/system/include/libc/sys/dirent.h
new file mode 100644
index 00000000..a3fb5c02
--- /dev/null
+++ b/system/include/libc/sys/dirent.h
@@ -0,0 +1,13 @@
+/* <dirent.h> includes <sys/dirent.h>, which is this file. On a
+ system which supports <dirent.h>, this file is overridden by
+ dirent.h in the libc/sys/.../sys directory. On a system which does
+ not support <dirent.h>, we will get this file which uses #error to force
+ an error. */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+#error "<dirent.h> not supported"
+#ifdef __cplusplus
+}
+#endif