From 78f5d726027d91065f11ea6b3e601492e0c1ff1d Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Tue, 3 Nov 2009 10:54:44 +0100 Subject: [PATCH] Cleanup configure checks for dup3 and fallocate We have a function for this which does not issue annoying warnings. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index fb66246a74..8b545a0364 100755 --- a/configure +++ b/configure @@ -1585,7 +1585,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 @@ -1600,7 +1600,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