block/export/fuse.c: fix musl build
commit50482fda98bd62e072c30b7ea73c985c4e9d9bbb
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 9 Aug 2021 09:51:01 +0000 (9 11:51 +0200)
committerHanna Reitz <hreitz@redhat.com>
Mon, 9 Aug 2021 15:19:27 +0000 (9 17:19 +0200)
tree159aaf0801ee7762cf5f13ad104b634c228cadc5
parent632eda54043d6f26ff87dac16233e14b4708b967
block/export/fuse.c: fix musl build

Fix the following build failure on musl raised since version 6.0.0 and
https://gitlab.com/qemu-project/qemu/-/commit/4ca37a96a75aafe7a37ba51ab1912b09b7190a6b
because musl does not define FALLOC_FL_ZERO_RANGE:

../block/export/fuse.c: In function 'fuse_fallocate':
../block/export/fuse.c:563:23: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function)
  563 |     } else if (mode & FALLOC_FL_ZERO_RANGE) {
      |                       ^~~~~~~~~~~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/b96e3d364fd1f8bbfb18904a742e73327d308f64

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Message-Id: <20210809095101.1101336-1-fontaine.fabrice@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
block/export/fuse.c