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.
This commit is contained in:
Willy Tarreau 2014-01-14 17:52:01 +01:00
parent 35249cb045
commit 4448925930
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@
* *
*/ */
#define _GNU_SOURCE
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>