Undefine __ASSUME_GETDENTS64_SYSCALL for n32 before 2.6.35.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 13 Aug 2010 23:37:54 +0000 (23:37 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 13 Aug 2010 23:37:54 +0000 (23:37 +0000)
ChangeLog.mips
sysdeps/unix/sysv/linux/mips/kernel-features.h

index bbcf818..3d0b975 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-13  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/mips/kernel-features.h
+       (__ASSUME_GETDENTS64_SYSCALL): Undefine for n32 ABI before 2.6.35.
+
 2010-08-13  Chandrakala Chavva  <cchavva@caviumnetworks.com>
 
        * sysdeps/unix/mips/mips64/n64/sysdep.h (PSEUDO): Add 'nop' in
index 6fe9b08..e9cf191 100644 (file)
 # define __ASSUME_SIGNALFD4    1
 #endif
 
+/* The n32 syscall ABI did not have a getdents64 syscall until
+   2.6.35.  */
+#if _MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623
+# undef __ASSUME_GETDENTS64_SYSCALL
+#endif
+
 #include_next <kernel-features.h>