diff mbox series

[iproute2,2/2] bpf: include libgen.h for basename

Message ID 20240122210546.3423784-3-pctammela@mojatatu.com (mailing list archive)
State Accepted
Delegated to: Stephen Hemminger
Headers show
Series some musl fixes | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Pedro Tammela Jan. 22, 2024, 9:05 p.m. UTC
In musl basename() is only available via libgen.h

Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
---
 lib/bpf_legacy.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/lib/bpf_legacy.c b/lib/bpf_legacy.c
index 844974e9..741eec8d 100644
--- a/lib/bpf_legacy.c
+++ b/lib/bpf_legacy.c
@@ -18,6 +18,7 @@ 
 #include <stdarg.h>
 #include <limits.h>
 #include <assert.h>
+#include <libgen.h>
 
 #ifdef HAVE_ELF
 #include <libelf.h>