On 28.08.21 00:03, Fabrice Fontaine wrote:
Include linux/fs.h to avoid the following build failure on uclibc or
musl raised since version 6.0.0:

../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.fabr...@gmail.com>
---
  block/export/fuse.c | 3 +++
  1 file changed, 3 insertions(+)

Thanks, applied to my block branch:

https://github.com/XanClic/qemu/commits/block

Hanna


Reply via email to