summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits/kernel-features.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-01-17 19:29:22 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-01-17 19:31:39 +0100
commit1e2e4ac6193ffe0900bd392fa3c596883771eb34 (patch)
tree048e2c36d35d368fa2351fcb329900e82c7c8aa9 /libc/sysdeps/linux/common/bits/kernel-features.h
parent7059926a34cfb090a3c36ca032342fd830c2d5a6 (diff)
socket.h: pull socket_type.h from eglibc
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/bits/kernel-features.h')
-rw-r--r--libc/sysdeps/linux/common/bits/kernel-features.h10
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