aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-06-06 19:35:57 +0000
committerStefan Weil <sw@weilnetz.de>2012-06-11 22:20:21 +0200
commitacc55ba8b1519bda27be19fad50b65d2b0c7d26d (patch)
tree37485396734f0a11b785039b564a732329c68810 /configure
parentfc9fa4bd0a295ac18808c4cd2cfac484bc4649d3 (diff)
downloadqemu-acc55ba8b1519bda27be19fad50b65d2b0c7d26d.zip
qemu-acc55ba8b1519bda27be19fad50b65d2b0c7d26d.tar.gz
qemu-acc55ba8b1519bda27be19fad50b65d2b0c7d26d.tar.bz2
configure: Fix build for some versions of glibc (9pfs)
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 <sw@weilnetz.de> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index c2366ee..5d73c82 100755
--- a/configure
+++ b/configure
@@ -2812,7 +2812,11 @@ fi
open_by_hande_at=no
cat > $TMPC << EOF
#include <fcntl.h>
+#if !defined(AT_EMPTY_PATH)
+# error missing definition
+#else
int main(void) { struct file_handle fh; return open_by_handle_at(0, &fh, 0); }
+#endif
EOF
if compile_prog "" "" ; then
open_by_handle_at=yes