]> git.proxmox.com Git - qemu.git/commitdiff
configure: Remove unneeded defines from checks
authorStefan Weil <weil@mail.berlios.de>
Wed, 6 Oct 2010 19:09:17 +0000 (21:09 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 9 Oct 2010 08:18:29 +0000 (08:18 +0000)
_GNU_SOURCE is already defined in QEMU_CFLAGS which
is passed to gcc in shell function compile_prog.

Removing the definition from several checks avoids compiler warnings
(which are now written to config.log).

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure

index 4f570548ae09c53923aaea1ebab1e30d43c2fcf9..b4e9c4c40d83c7e69e58b1b5554523fd86bb3870 100755 (executable)
--- a/configure
+++ b/configure
@@ -1891,7 +1891,6 @@ fi
 utimens=no
 cat > $TMPC << EOF
 #define _ATFILE_SOURCE
-#define _GNU_SOURCE
 #include <stddef.h>
 #include <fcntl.h>
 
@@ -1909,7 +1908,6 @@ fi
 # check if pipe2 is there
 pipe2=no
 cat > $TMPC << EOF
-#define _GNU_SOURCE
 #include <unistd.h>
 #include <fcntl.h>
 
@@ -1927,7 +1925,6 @@ fi
 # check if accept4 is there
 accept4=no
 cat > $TMPC << EOF
-#define _GNU_SOURCE
 #include <sys/socket.h>
 #include <stddef.h>
 
@@ -1944,7 +1941,6 @@ fi
 # check if tee/splice is there. vmsplice was added same time.
 splice=no
 cat > $TMPC << EOF
-#define _GNU_SOURCE
 #include <unistd.h>
 #include <fcntl.h>
 #include <limits.h>