From 5c663502bf55fa6495116ef580d606c93982fd4f Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 15 Feb 2023 01:56:02 +0100 Subject: [PATCH] btrfs-progs: build: use plain fcntl.h instead of sys/fcntl.h The CI build on musl warns: [CC] cmds/balance.o In file included from cmds/inspect.c:19: /usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ On glibc the header directly includes fcntl.h. Signed-off-by: David Sterba --- btrfs-sb-mod.c | 2 +- cmds/inspect.c | 2 +- cmds/reflink.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/btrfs-sb-mod.c b/btrfs-sb-mod.c index e3ba562a..5893b7f2 100644 --- a/btrfs-sb-mod.c +++ b/btrfs-sb-mod.c @@ -15,8 +15,8 @@ */ #include "kerncompat.h" -#include #include +#include #include #include #include diff --git a/cmds/inspect.c b/cmds/inspect.c index ade312f7..161fdf80 100644 --- a/cmds/inspect.c +++ b/cmds/inspect.c @@ -16,11 +16,11 @@ #include "kerncompat.h" #include -#include #include #include #include #include +#include #include #include #include diff --git a/cmds/reflink.c b/cmds/reflink.c index 53f47848..fd0887d2 100644 --- a/cmds/reflink.c +++ b/cmds/reflink.c @@ -15,8 +15,8 @@ */ #include "kerncompat.h" -#include #include +#include #include #include #include