Message ID | 20220424051022.2619648-5-asmadeus@codewreck.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 246bdfa52f33ecfa52546ed67287de4eab165b2e |
Delegated to: | BPF |
Headers | show |
Series | tools/bpf: allow building with musl | expand |
Context | Check | Description |
---|---|---|
bpf/vmtest-bpf-next-PR | success | PR summary |
bpf/vmtest-bpf-next-VM_Test-1 | success | Logs for Kernel LATEST on ubuntu-latest + selftests |
bpf/vmtest-bpf-next-VM_Test-2 | success | Logs for Kernel LATEST on z15 + selftests |
netdev/tree_selection | success | Not a local patch |
On Sun, 24 Apr 2022 at 06:11, Dominique Martinet <asmadeus@codewreck.org> wrote: > > musl does not like including sys/fcntl.h directly: > 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> > > Signed-off-by: Dominique Martinet <asmadeus@codewreck.org> Acked-by: Quentin Monnet <quentin@isovalent.com>
diff --git a/tools/bpf/bpftool/tracelog.c b/tools/bpf/bpftool/tracelog.c index e80a5c79b38f..bf1f02212797 100644 --- a/tools/bpf/bpftool/tracelog.c +++ b/tools/bpf/bpftool/tracelog.c @@ -9,7 +9,7 @@ #include <string.h> #include <unistd.h> #include <linux/magic.h> -#include <sys/fcntl.h> +#include <fcntl.h> #include <sys/vfs.h> #include "main.h"
musl does not like including sys/fcntl.h directly: 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> Signed-off-by: Dominique Martinet <asmadeus@codewreck.org> --- tools/bpf/bpftool/tracelog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)