From 5ccc178fd7df5cc1e1ed368c093cf207b6135879 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 13 Aug 2010 23:37:54 +0000 Subject: [PATCH] Undefine __ASSUME_GETDENTS64_SYSCALL for n32 before 2.6.35. --- ChangeLog.mips | 5 +++++ sysdeps/unix/sysv/linux/mips/kernel-features.h | 6 ++++++ 2 files changed, 11 insertions(+) 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 + + * sysdeps/unix/sysv/linux/mips/kernel-features.h + (__ASSUME_GETDENTS64_SYSCALL): Undefine for n32 ABI before 2.6.35. + 2010-08-13 Chandrakala Chavva * 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