aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-08-13 23:37:54 +0000
committerJoseph Myers <joseph@codesourcery.com>2010-08-13 23:37:54 +0000
commit5ccc178fd7df5cc1e1ed368c093cf207b6135879 (patch)
tree8b9215ec98a63e4363f20e0eabf97534a699d4fe
parent5237c94b637a24f0bd34cf7b68877125dacf7c2f (diff)
downloadglibc-5ccc178fd7df5cc1e1ed368c093cf207b6135879.tar.xz
glibc-5ccc178fd7df5cc1e1ed368c093cf207b6135879.zip
Undefine __ASSUME_GETDENTS64_SYSCALL for n32 before 2.6.35.
-rw-r--r--ChangeLog.mips5
-rw-r--r--sysdeps/unix/sysv/linux/mips/kernel-features.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog.mips b/ChangeLog.mips
index bbcf8189e9..3d0b975b72 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -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
diff --git a/sysdeps/unix/sysv/linux/mips/kernel-features.h b/sysdeps/unix/sysv/linux/mips/kernel-features.h
index 6fe9b0883a..e9cf191d15 100644
--- a/sysdeps/unix/sysv/linux/mips/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/mips/kernel-features.h
@@ -37,4 +37,10 @@
# 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>