package/qemu: fix fuse-lseek on uclibc-ng and musl
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 27 Aug 2021 22:05:31 +0000 (00:05 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 11 Sep 2021 13:23:15 +0000 (15:23 +0200)
commit52286188caceda0919b6c7a0f40b55a928ef4b48
tree34f62eff6cc3d1a89515b2b67e76d93d70ef709e
parent6409ea4c220275f76a705df5678b8340a386e553
package/qemu: fix fuse-lseek on uclibc-ng and musl

Fix the following build failure on uclibc-ng raised since bump to
version 6.0.0 in commit 6b86c9335fc3ff381878156c6243454d4b688df9:

../block/export/fuse.c: In function 'fuse_lseek':
../block/export/fuse.c:641:19: error: 'SEEK_HOLE' undeclared (first use in this function)
  641 |     if (whence != SEEK_HOLE && whence != SEEK_DATA) {
      |                   ^~~~~~~~~
../block/export/fuse.c:641:19: note: each undeclared identifier is reported only once for each function it appears in
../block/export/fuse.c:641:42: error: 'SEEK_DATA' undeclared (first use in this function); did you mean 'SEEK_SET'?
  641 |     if (whence != SEEK_HOLE && whence != SEEK_DATA) {
      |                                          ^~~~~~~~~
      |                                          SEEK_SET

Fixes:
 - http://autobuild.buildroot.org/results/33c90ebf04997f4d3557cfa66abc9cf9a3076137

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/qemu/0006-block-export-fuse.c-fix-fuse-lseek-on-uclibc-or-musl.patch [new file with mode: 0644]
package/qemu/qemu.mk