BPF List
 help / color / mirror / Atom feed
* [PATCH] bpftool: Add missing libgen.h for basename()
@ 2024-01-04  3:04 Arnaldo Carvalho de Melo
  2024-01-04  9:33 ` Jiri Olsa
  2024-01-12  2:52 ` kernel test robot
  0 siblings, 2 replies; 12+ messages in thread
From: Arnaldo Carvalho de Melo @ 2024-01-04  3:04 UTC (permalink / raw)
  To: Quentin Monnet
  Cc: Jiri Olsa, Namhyung Kim, Ian Rogers, Adrian Hunter,
	Andrii Nakryiko, bpf

The header with the prototype for basename() is missing in the gen.c
file, which breaks the build in distros where that header doesn't get
include by some of the other includes present in gen.c, by luck, fix it.

Noticed when build perf on the Alpine Linux edge.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

---

diff --git a/tools/bpf/bpftool/gen.c b/tools/bpf/bpftool/gen.c
index ee3ce2b8000d75d2..0e50722588b48fa0 100644
--- a/tools/bpf/bpftool/gen.c
+++ b/tools/bpf/bpftool/gen.c
@@ -7,6 +7,7 @@
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <libgen.h>
 #include <linux/err.h>
 #include <stdbool.h>
 #include <stdio.h>

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-01-29 11:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-04  3:04 [PATCH] bpftool: Add missing libgen.h for basename() Arnaldo Carvalho de Melo
2024-01-04  9:33 ` Jiri Olsa
2024-01-04 12:27   ` Arnaldo Carvalho de Melo
2024-01-04 13:01     ` Arnaldo Carvalho de Melo
2024-01-05  8:48       ` Jiri Olsa
2024-01-05 15:01         ` Jiri Olsa
2024-01-05 20:53           ` Arnaldo Carvalho de Melo
2024-01-06 20:02             ` Jiri Olsa
2024-01-26 15:53             ` Arnaldo Carvalho de Melo
2024-01-29 10:07               ` Quentin Monnet
2024-01-29 11:23               ` Jiri Olsa
2024-01-12  2:52 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox