diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2011-01-10 13:43:48 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-01-10 13:43:48 +0200 |
commit | 6107ff12922e5508a44b376b40a3041810cb00d2 (patch) | |
tree | 56098d53043a8fcdd01dbf0dca565ceab09f95b3 /configure | |
parent | be92bbf73dfd7d8a4786dc5f6c71590f4fbc5a32 (diff) | |
parent | 8aaf42ed0f203da63860b0a3ab3ff2bdfe9b4cb0 (diff) | |
download | qemu-6107ff12922e5508a44b376b40a3041810cb00d2.tar.gz qemu-6107ff12922e5508a44b376b40a3041810cb00d2.tar.bz2 qemu-6107ff12922e5508a44b376b40a3041810cb00d2.zip |
Merge remote branch 'origin/master' into pci
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -2075,6 +2075,21 @@ if compile_prog "$ARCH_CFLAGS" "" ; then fallocate=yes fi +# check for sync_file_range +sync_file_range=no +cat > $TMPC << EOF +#include <fcntl.h> + +int main(void) +{ + sync_file_range(0, 0, 0, 0); + return 0; +} +EOF +if compile_prog "$ARCH_CFLAGS" "" ; then + sync_file_range=yes +fi + # check for dup3 dup3=no cat > $TMPC << EOF @@ -2613,6 +2628,9 @@ fi if test "$fallocate" = "yes" ; then echo "CONFIG_FALLOCATE=y" >> $config_host_mak fi +if test "$sync_file_range" = "yes" ; then + echo "CONFIG_SYNC_FILE_RANGE=y" >> $config_host_mak +fi if test "$dup3" = "yes" ; then echo "CONFIG_DUP3=y" >> $config_host_mak fi |