]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: syscall: fix NR_accept4 system call on sparc/linux
authorWilly Tarreau <w@1wt.eu>
Mon, 4 Mar 2013 06:31:08 +0000 (07:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 4 Mar 2013 06:31:08 +0000 (07:31 +0100)
An invalid copy-paste called it NR_splice instead of NR_accept4.
This does not lead to real issues because if this define is used,
then the code cannot compile since NR_accept4 is still missing.

include/common/syscall.h

index 3ccbf5a8db1266bb98130f3e54e9c1779547a2b6..659b0ca34705802dcd91b770cee26a76b17fab17 100644 (file)
 #if defined(__x86_64__)
 #define __NR_accept4            288
 #elif defined(__sparc__) || defined(__sparc64__)
-#define __NR_splice             323
+#define __NR_accept4            323
 #else
 #define ACCEPT4_USE_SOCKETCALL    1
 #ifndef SYS_ACCEPT4