qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Cleanup configure checks for dup3 and fallocate
@ 2009-11-03  9:54 Jan Kiszka
  2009-11-03 13:10 ` Riku Voipio
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2009-11-03  9:54 UTC (permalink / raw)
  To: qemu-devel

We have a function for this which does not issue annoying warnings.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index aa2cc43..b38353a 100755
--- a/configure
+++ b/configure
@@ -1580,7 +1580,7 @@ int main(void)
     return 0;
 }
 EOF
-if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
+if compile_prog "" "" ; then
   fallocate=yes
 fi
 
@@ -1595,7 +1595,7 @@ int main(void)
     return 0;
 }
 EOF
-if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
+if compile_prog "" "" ; then
   dup3=yes
 fi
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] Cleanup configure checks for dup3 and fallocate
  2009-11-03  9:54 [Qemu-devel] [PATCH] Cleanup configure checks for dup3 and fallocate Jan Kiszka
@ 2009-11-03 13:10 ` Riku Voipio
  0 siblings, 0 replies; 2+ messages in thread
From: Riku Voipio @ 2009-11-03 13:10 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: qemu-devel

On Tue, Nov 03, 2009 at 10:54:44AM +0100, Jan Kiszka wrote:
> We have a function for this which does not issue annoying warnings.

Acked-by: Riku Voipio <riku.voipio@iki.fi>
 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> 
>  configure |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/configure b/configure
> index aa2cc43..b38353a 100755
> --- a/configure
> +++ b/configure
> @@ -1580,7 +1580,7 @@ int main(void)
>      return 0;
>  }
>  EOF
> -if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
> +if compile_prog "" "" ; then
>    fallocate=yes
>  fi
>  
> @@ -1595,7 +1595,7 @@ int main(void)
>      return 0;
>  }
>  EOF
> -if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
> +if compile_prog "" "" ; then
>    dup3=yes
>  fi
>  
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-03 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-03  9:54 [Qemu-devel] [PATCH] Cleanup configure checks for dup3 and fallocate Jan Kiszka
2009-11-03 13:10 ` Riku Voipio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).