summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/ia64/kernel-features.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-04-14 10:30:01 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-04-14 10:30:01 +0200
commit02191c903188162a48f57a4644dcd74809011151 (patch)
treeab9febb90f4428882d42c0ac334cf805662feca7 /sysdeps/unix/sysv/linux/ia64/kernel-features.h
parent6417a03b98b851c7e5fea01ffd744d497971277e (diff)
downloadglibc-fw/accept4.tar.gz
Assume that accept4 is always available and worksfw/accept4
Simplify the Linux accept4 implementation based on the assumption that it is available in some way. __ASSUME_ACCEPT4_SOCKETCALL was previously unused, so remove it. Its functionality is implied by the complex #if condition in accept4.c.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ia64/kernel-features.h')
-rw-r--r--sysdeps/unix/sysv/linux/ia64/kernel-features.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/ia64/kernel-features.h b/sysdeps/unix/sysv/linux/ia64/kernel-features.h
index ac9403e869..cda0ad6150 100644
--- a/sysdeps/unix/sysv/linux/ia64/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/ia64/kernel-features.h
@@ -22,13 +22,8 @@
#include_next <kernel-features.h>
-/* Support for the accept4 syscall was added in 3.3. */
-#if __LINUX_KERNEL_VERSION < 0x030300
-# undef __ASSUME_ACCEPT4_SYSCALL
-# undef __ASSUME_ACCEPT4
-#endif
-
#define __ASSUME_RECV_SYSCALL 1
#define __ASSUME_SEND_SYSCALL 1
+#define __ASSUME_ACCEPT4_SYSCALL 1
#endif /* _KERNEL_FEATURES_H */