diff options
Diffstat (limited to 'libc/sysdeps/linux/common/bits/kernel-features.h')
-rw-r--r-- | libc/sysdeps/linux/common/bits/kernel-features.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/bits/kernel-features.h b/libc/sysdeps/linux/common/bits/kernel-features.h index 8893dcf6c..4d1e0cbc3 100644 --- a/libc/sysdeps/linux/common/bits/kernel-features.h +++ b/libc/sysdeps/linux/common/bits/kernel-features.h @@ -310,17 +310,19 @@ /* Support for various CLOEXEC and NONBLOCK flags was added for x86, * x86-64, PPC, IA-64, and SPARC in 2.6.27. */ -#if __LINUX_KERNEL_VERSION >= 0x02061b \ - && (defined __i386__ || defined __x86_64__ || defined __powerpc__ \ - || defined __ia64__ || defined __sparc__ || defined __s390__) +#if (__LINUX_KERNEL_VERSION >= 0x02061b \ + && (defined __i386__ || defined __x86_64__ || defined __powerpc__ \ + || defined __ia64__ || defined __sparc__ || defined __s390__) \ + ) || (__LINUX_KERNEL_VERSION >= 0x020621 && defined __alpha__) \ + || defined __aarch64__ || defined __tile__ /* # define __ASSUME_SOCK_CLOEXEC 1 */ /* # define __ASSUME_IN_NONBLOCK 1 */ # define __ASSUME_PIPE2 1 /* # define __ASSUME_EVENTFD2 1 */ /* # define __ASSUME_SIGNALFD4 1 */ +/* # define __ASSUME_DUP3 1 */ #endif - /* These features were surely available with 2.4.12. */ #if __LINUX_KERNEL_VERSION >= 132108 && defined __mc68000__ # define __ASSUME_MMAP2_SYSCALL 1 |