qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] block/export/fuse.c: fix fuse-lseek on uclibc or musl


From: Hanna Reitz
Subject: Re: [PATCH] block/export/fuse.c: fix fuse-lseek on uclibc or musl
Date: Wed, 1 Sep 2021 13:08:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

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.fabrice@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

[Prev in Thread] Current Thread [Next in Thread]