[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH stable-1.1 16/26] configure: Fix build for some vers

From: Michael Roth
Subject: [Qemu-devel] [PATCH stable-1.1 16/26] configure: Fix build for some versions of glibc (9pfs)
Date: Fri, 22 Jun 2012 19:33:20 -0500

From: Stefan Weil <address@hidden>

Some versions declare open_by_handle_at, but don't define AT_EMPTY_PATH.
Extend the check in configure to test both preconditions.

Signed-off-by: Stefan Weil <address@hidden>
Acked-by: Stefano Stabellini <address@hidden>
Acked-by: Serge Hallyn <address@hidden>
 configure |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 268ed21..72d16a4 100755
--- a/configure
+++ b/configure
@@ -2811,7 +2811,11 @@ fi
 cat > $TMPC << EOF
 #include <fcntl.h>
+#if !defined(AT_EMPTY_PATH)
+# error missing definition
 int main(void) { struct file_handle fh; return open_by_handle_at(0, &fh, 0); }
 if compile_prog "" "" ; then

reply via email to

[Prev in Thread] Current Thread [Next in Thread]