-- Sonny Karlsson
>From dc33934f9447450e28e872e049cc9354be08b6c5 Mon Sep 17 00:00:00 2001 From: Sonny Karlsson <[email protected]> Date: Sun, 12 Aug 2012 15:50:50 +0200 Subject: [PATCH] configure: Fix accept4() check.
Builds check.c with -Wimplitic to detect when accept4 is absent. Also adds _GNU_SOURCE define so accept4 is actually declared. Signed-off-by: Sonny Karlsson <[email protected]> --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 3ac3806..f962479 100755 --- a/configure +++ b/configure @@ -213,7 +213,7 @@ main() check_accept4_func() { cat > check.c <<EOF -#include <sys/types.h> +#define _GNU_SOURCE #include <sys/socket.h> int main() @@ -223,7 +223,7 @@ int main() } EOF -functest=`$CC check.c &>configure.log` +functest=`$CC -Wimplicit check.c &>configure.log` funcstatus=`cat configure.log` if test -n "$funcstatus" ; then result=-1 -- 1.7.10.4
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
