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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
---
 utest/trace-utest.c | 1 +
 1 file changed, 1 insertion(+)

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>
--
2.45.2





[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux