]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD/MINOR: listener: remove a glibc warning on accept4()
authorWilly Tarreau <w@1wt.eu>
Tue, 14 Jan 2014 16:52:01 +0000 (17:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 Jan 2014 16:54:12 +0000 (17:54 +0100)
The accept4() Linux syscall requires _GNU_SOURCE on ix86, otherwise
it emits a warning. On other archs including x86_64, this problem
doesn't happen. Thanks to Charles Carter from Sigma Software for
reporting this.

src/listener.c

index afd6ae2250c238e9fee8b4e5753070469660803f..e5e723f4571509e4fd6b1aae9552843e4b86a80c 100644 (file)
@@ -10,6 +10,7 @@
  *
  */
 
+#define _GNU_SOURCE
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>