Linux-Trace-Devel Archive mirror
 help / color / mirror / Atom feed
From: Miko Larsson via B4 Relay <devnull+mikoxyzzz.gmail.com@kernel.org>
To: linux-trace-devel@vger.kernel.org
Cc: Miko Larsson <mikoxyzzz@gmail.com>
Subject: [PATCH v2] utest/trace-utest: include libgen.h
Date: Thu, 22 Feb 2024 11:16:21 +0100	[thread overview]
Message-ID: <20240222-utest-fixes-v2-1-7b8ee8dca0b7@gmail.com> (raw)

From: Miko Larsson <mikoxyzzz@gmail.com>

This fixes the build with musl + clang >=15; musl doesn't define
basename() anywhere else, and clang >=15 doesn't allow implicit
declarations.

Fixes: 58cbc1b2a84e ("libtraceevent: Add unit test framework for library commands")
Signed-off-by: Miko Larsson <mikoxyzzz@gmail.com>
---
Changes in v2:
- Better commit description, message
- Link to v1: https://lore.kernel.org/r/20240215-utest-fixes-v1-1-3cb7a281506d@gmail.com
---
 utest/trace-utest.c | 1 +
 1 file changed, 1 insertion(+)

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>

---
base-commit: 6f6d5802f31992e7527a4c32b43a32fda6bf6bdf
change-id: 20240215-utest-fixes-cd5dcc3e853b

Best regards,
-- 
Miko Larsson <mikoxyzzz@gmail.com>


                 reply	other threads:[~2024-02-22 10:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240222-utest-fixes-v2-1-7b8ee8dca0b7@gmail.com \
    --to=devnull+mikoxyzzz.gmail.com@kernel.org \
    --cc=linux-trace-devel@vger.kernel.org \
    --cc=mikoxyzzz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).