summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAneesh Kumar K.V2011-10-12 15:41:24 +0200
committerAneesh Kumar K.V2011-10-15 12:00:26 +0200
commitd20423788e3a3d5f6a2aad8315779bf3f952ca36 (patch)
treee518c51071a2e1febd73529c9d4481f38e4e7307 /configure
parentqemu-options.hx: Update virtfs command documentation (diff)
downloadqemu-d20423788e3a3d5f6a2aad8315779bf3f952ca36.tar.gz
qemu-d20423788e3a3d5f6a2aad8315779bf3f952ca36.tar.xz
qemu-d20423788e3a3d5f6a2aad8315779bf3f952ca36.zip
hw/9pfs: Fix build error on platform that don't support futimens
Also don't do glibc version check to find handle support. Instead do handle syscall support in configure. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure b/configure
index 9b4fe34fce..f8f7a072b7 100755
--- a/configure
+++ b/configure
@@ -2557,6 +2557,18 @@ EOF
fi
##########################################
+# check if we have open_by_handle_at
+
+open_by_hande_at=no
+cat > $TMPC << EOF
+#include <fcntl.h>
+int main(void) { struct file_handle *fh; open_by_handle_at(0, fh, 0); }
+EOF
+if compile_prog "" "" ; then
+ open_by_handle_at=yes
+fi
+
+##########################################
# End of CC checks
# After here, no more $cc or $ld runs
@@ -3035,6 +3047,10 @@ if test "$ucontext_coroutine" = "yes" ; then
echo "CONFIG_UCONTEXT_COROUTINE=y" >> $config_host_mak
fi
+if test "$open_by_handle_at" = "yes" ; then
+ echo "CONFIG_OPEN_BY_HANDLE=y" >> $config_host_mak
+fi
+
# USB host support
case "$usb" in
linux)