aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiko Larsson <mikoxyzzz@gmail.com>2024-02-22 11:16:21 +0100
committerSteven Rostedt (Google) <rostedt@goodmis.org>2024-02-22 11:20:30 -0500
commit0351241c9dee64c8cbc94055413d7a58a0d0c25c (patch)
treeb39e6e097a192da4e40dcecc8f23a29dd8ee2832
parent6f6d5802f31992e7527a4c32b43a32fda6bf6bdf (diff)
downloadlibtraceevent-0351241c9dee64c8cbc94055413d7a58a0d0c25c.tar.gz
libtraceevent utest: Include libgen.h for basename() with musl
This fixes the build with musl + clang >=15; musl doesn't define basename() anywhere else, and clang >=15 doesn't allow implicit declarations. Link: https://lore.kernel.org/linux-trace-devel/20240222-utest-fixes-v2-1-7b8ee8dca0b7@gmail.com Fixes: 58cbc1b2a84e ("libtraceevent: Add unit test framework for library commands") Signed-off-by: Miko Larsson <mikoxyzzz@gmail.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r--utest/trace-utest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utest/trace-utest.c b/utest/trace-utest.c
index 1403c86..a26e42e 100644
--- a/utest/trace-utest.c
+++ b/utest/trace-utest.c
@@ -6,6 +6,7 @@
* Copyright (C) 2021, VMware, Steven Rostedt <rostedt@goodmis.org>
*
*/
+#include <libgen.h>
#include <stdio.h>
#include <unistd.h>
#include <getopt.h>