From: Willy Tarreau Date: Tue, 14 Jan 2014 16:52:01 +0000 (+0100) Subject: BUILD/MINOR: listener: remove a glibc warning on accept4() X-Git-Tag: v1.5-dev22~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4448925;p=thirdparty%2Fhaproxy.git BUILD/MINOR: listener: remove a glibc warning on accept4() 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. --- diff --git a/src/listener.c b/src/listener.c index afd6ae2250..e5e723f457 100644 --- a/src/listener.c +++ b/src/listener.c @@ -10,6 +10,7 @@ * */ +#define _GNU_SOURCE #include #include #include