]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD/MINOR: syscall: add definition of NR_accept4 for ARM
authorWilly Tarreau <w@1wt.eu>
Mon, 4 Mar 2013 06:38:08 +0000 (07:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 4 Mar 2013 06:38:08 +0000 (07:38 +0100)
This platform was not covered and older libc do not provide accept4().

include/common/syscall.h

index 659b0ca34705802dcd91b770cee26a76b17fab17..0b1ccd6b7b3ca34c6c3bc7eec946e653a7bb95a5 100644 (file)
 #define __NR_accept4            288
 #elif defined(__sparc__) || defined(__sparc64__)
 #define __NR_accept4            323
+#elif defined(__arm__) || defined(__thumb__)
+#define __NR_accept4            (__NR_SYSCALL_BASE+366)
 #else
 #define ACCEPT4_USE_SOCKETCALL    1
 #ifndef SYS_ACCEPT4