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

Fiona Klute <[email protected]>
Newsgroups org.kernel.vger.linux-trace-devel
Message-ID <[email protected]>
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 <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.