]> git.proxmox.com Git - mirror_qemu.git/blobdiff - configure
hw/9pfs: Fix build error on platform that don't support futimens
[mirror_qemu.git] / configure
index 9b4fe34fcef9768bc0d14ac841b65857904b8f71..f8f7a072b79bd6284995c67b1051692aa02853bf 100755 (executable)
--- a/configure
+++ b/configure
@@ -2556,6 +2556,18 @@ EOF
   fi
 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)