Skip to content

Commit

Permalink
bpftool, musl compat: Replace sys/fcntl.h by fcntl.h
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20220424051022.2619648-5-asmadeus@codewreck.org
  • Loading branch information
Dominique Martinet authored and Daniel Borkmann committed Apr 25, 2022
1 parent 93bc2e9 commit 246bdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bpf/bpftool/tracelog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 246bdfa

Please sign in to comment.