aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nacl/readdir.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-04-17 09:02:19 -0700
committerRoland McGrath <roland@hack.frob.com>2015-04-17 09:02:19 -0700
commitd1e44df1fa5fefd8a083f6c1e909bbcdc97c6438 (patch)
treea76176eca62c0907dd7f135979312c8e55ad06a5 /sysdeps/nacl/readdir.c
parentf70925993ada98039250d46c62fb89c168b8f9d6 (diff)
downloadglibc-d1e44df1fa5fefd8a083f6c1e909bbcdc97c6438.zip
glibc-d1e44df1fa5fefd8a083f6c1e909bbcdc97c6438.tar.gz
glibc-d1e44df1fa5fefd8a083f6c1e909bbcdc97c6438.tar.bz2
Add arm-nacl port.
Diffstat (limited to 'sysdeps/nacl/readdir.c')
-rw-r--r--sysdeps/nacl/readdir.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysdeps/nacl/readdir.c b/sysdeps/nacl/readdir.c
new file mode 100644
index 0000000..a73bfe4
--- /dev/null
+++ b/sysdeps/nacl/readdir.c
@@ -0,0 +1,11 @@
+/* The compiler complains about aliases with nonmatching type signatures.
+ The types 'struct dirent' and 'struct dirent64' are actually identical
+ even though the compiler doesn't consider them to be. So we hide the
+ declaration from the compiler. */
+#define __readdir64 __avoid___readdir64_declaration
+#define readdir64 __avoid_readdir64_declaration
+#include <sysdeps/posix/readdir.c>
+#undef __readdir64
+#undef readdir64
+strong_alias (__readdir, __readdir64)
+weak_alias (__readdir64, readdir64)