qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] 9pfs: fix missing sys/mount.h include


From: Bin Meng
Subject: Re: [PATCH] 9pfs: fix missing sys/mount.h include
Date: Fri, 28 Oct 2022 21:39:59 +0800

On Fri, Oct 28, 2022 at 7:30 PM Christian Schoenebeck
<qemu_oss@crudebyte.com> wrote:
>
> Fixes the following build error:
>
>   fsdev/file-op-9p.h:156:56: error: declaration of 'struct statfs' will
>   not be visible outside of this function [-Werror,-Wvisibility]
>     int (*statfs)(FsContext *s, V9fsPath *path, struct statfs *stbuf);
>                                                        ^
>
> As Windows neither has statfs, nor sys/mount.h, don't include it there.
>
> Fixes: 684f91203439 ("tests/9p: split virtio-9p-test.c ...")
> Link: https://lore.kernel.org/all/2690108.PsDodiG1Zx@silver/
> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
> ---
>  fsdev/file-op-9p.h | 2 ++
>  1 file changed, 2 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>



reply via email to

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