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

[Xen-changelog] [qemu-upstream-unstable] configure: Fix build for some versions of glibc (9pfs)



commit 4e8785001421e97c4f1c18d27ce77d717f9561d4
Author: Stefan Weil <sw@xxxxxxxxxxx>
Date:   Fri Jun 22 11:14:47 2012 +0000

    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.
    
    upstream-commit: acc55ba8b1519bda27be19fad50b65d2b0c7d26d
    
    Signed-off-by: Stefan Weil <sw@xxxxxxxxxxx>
    Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
    Acked-by: Serge Hallyn <serge.hallyn@xxxxxxxxxx>
---
 configure |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 091e389..85e80ca 100755
--- a/configure
+++ b/configure
@@ -2661,7 +2661,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
--
generated by git-patchbot for /home/xen/git/qemu-upstream-unstable.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.