[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] configure: Remove unneeded defines from checks
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH] configure: Remove unneeded defines from checks |
Date: |
Sat, 9 Oct 2010 09:42:33 +0000 |
Thanks, applied.
On Wed, Oct 6, 2010 at 7:09 PM, Stefan Weil <address@hidden> wrote:
> _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 <address@hidden>
> ---
> configure | 4 ----
> 1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/configure b/configure
> index 9e65de0..e67d076 100755
> --- a/configure
> +++ b/configure
> @@ -1888,7 +1888,6 @@ fi
> utimens=no
> cat > $TMPC << EOF
> #define _ATFILE_SOURCE
> -#define _GNU_SOURCE
> #include <stddef.h>
> #include <fcntl.h>
>
> @@ -1906,7 +1905,6 @@ fi
> # check if pipe2 is there
> pipe2=no
> cat > $TMPC << EOF
> -#define _GNU_SOURCE
> #include <unistd.h>
> #include <fcntl.h>
>
> @@ -1924,7 +1922,6 @@ fi
> # check if accept4 is there
> accept4=no
> cat > $TMPC << EOF
> -#define _GNU_SOURCE
> #include <sys/socket.h>
> #include <stddef.h>
>
> @@ -1941,7 +1938,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>
> --
> 1.7.1
>
>
>