From 197aec2596ce699bc7b999ecf2dcd69bc5452c6e Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Wed, 29 Jul 2009 15:27:35 +0000 Subject: [PATCH] Define __ASSUME_EVENTFD2 and __ASSUME_SIGNALFD4 for MIPS. * sysdeps/unix/sysv/linux/mips/kernel-features.h: Define __ASSUME_EVENTFD2 and __ASSUME_SIGNALFD4. --- 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 925e5e65..282c65df 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,3 +1,8 @@ +2009-07-20 Aurelien Jarno + + * sysdeps/unix/sysv/linux/mips/kernel-features.h: Define + __ASSUME_EVENTFD2 and __ASSUME_SIGNALFD4. + 2009-07-17 Joseph Myers * sysdeps/mips/do-lookup.h: Remove. diff --git a/sysdeps/unix/sysv/linux/mips/kernel-features.h b/sysdeps/unix/sysv/linux/mips/kernel-features.h index f479b606..6fe9b088 100644 --- a/sysdeps/unix/sysv/linux/mips/kernel-features.h +++ b/sysdeps/unix/sysv/linux/mips/kernel-features.h @@ -31,4 +31,10 @@ # define __ASSUME_FCNTL64 1 #endif +/* Support for the eventfd2 and signalfd4 syscalls was added in 2.6.27. */ +#if __LINUX_KERNEL_VERSION >= 0x02061c +# define __ASSUME_EVENTFD2 1 +# define __ASSUME_SIGNALFD4 1 +#endif + #include_next -- 2.11.4.GIT