diff mbox series

trace-cmd: utest: include libgen.h for POSIX basename()

Message ID 20240811135517.3764297-1-fiona.klute@gmx.de (mailing list archive)
State Accepted
Commit 75e3b8681d6eff381879831a147cde9f8e817665
Headers show
Series trace-cmd: utest: include libgen.h for POSIX basename() | expand

Commit Message

Fiona Klute Aug. 11, 2024, 1:55 p.m. UTC
This fixes building utest/trace-utest.c with musl (e.g. on Alpine),
which doesn't provide the GNU version.

Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
---
 utest/trace-utest.c | 1 +
 1 file changed, 1 insertion(+)

--
2.45.2
diff mbox series

Patch

diff --git a/utest/trace-utest.c b/utest/trace-utest.c
index 051a0285..6bb190ee 100644
--- a/utest/trace-utest.c
+++ b/utest/trace-utest.c
@@ -7,6 +7,7 @@ 
 #include <unistd.h>
 #include <getopt.h>
 #include <stdlib.h>
+#include <libgen.h>

 #include <CUnit/CUnit.h>
 #include <CUnit/Basic.h>