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 3/3] utest/trace-utest: include libgen.h Date: Thu, 22 Feb 2024 11:12:46 +0100 [thread overview] Message-ID: <20240222-utest-fixes-v2-3-ba9cd06b41d3@gmail.com> (raw) In-Reply-To: <20240222-utest-fixes-v2-0-ba9cd06b41d3@gmail.com> From: Miko Larsson <mikoxyzzz@gmail.com> This fixes the build with musl + clang >=15; musl doesn't declare basename() anywhere else, and clang >=15 doesn't allow implicit declarations. Fixes: 845f16976929 ("libtracefs: Add unit tests") Signed-off-by: Miko Larsson <mikoxyzzz@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 58d4d4e..39485a1 100644 --- a/utest/trace-utest.c +++ b/utest/trace-utest.c @@ -3,6 +3,7 @@ * Copyright (C) 2020, VMware, Tzvetomir Stoyanov <tz.stoyanov@gmail.com> * */ +#include <libgen.h> #include <stdio.h> #include <unistd.h> #include <getopt.h> -- 2.43.0
WARNING: multiple messages have this Message-ID (diff)
From: Miko Larsson <mikoxyzzz@gmail.com> To: linux-trace-devel@vger.kernel.org Cc: Miko Larsson <mikoxyzzz@gmail.com> Subject: [PATCH v2 3/3] utest/trace-utest: include libgen.h Date: Thu, 22 Feb 2024 11:12:46 +0100 [thread overview] Message-ID: <20240222-utest-fixes-v2-3-ba9cd06b41d3@gmail.com> (raw) In-Reply-To: <20240222-utest-fixes-v2-0-ba9cd06b41d3@gmail.com> This fixes the build with musl + clang >=15; musl doesn't declare basename() anywhere else, and clang >=15 doesn't allow implicit declarations. Fixes: 845f16976929 ("libtracefs: Add unit tests") Signed-off-by: Miko Larsson <mikoxyzzz@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 58d4d4e..39485a1 100644 --- a/utest/trace-utest.c +++ b/utest/trace-utest.c @@ -3,6 +3,7 @@ * Copyright (C) 2020, VMware, Tzvetomir Stoyanov <tz.stoyanov@gmail.com> * */ +#include <libgen.h> #include <stdio.h> #include <unistd.h> #include <getopt.h> -- 2.43.0
next prev parent reply other threads:[~2024-02-22 10:12 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-22 10:12 [PATCH v2 0/3] utest: fix build with musl + clang >=15 Miko Larsson via B4 Relay 2024-02-22 10:12 ` Miko Larsson 2024-02-22 10:12 ` [PATCH v2 1/3] utest/tracefs-utest: include linux/limits.h Miko Larsson via B4 Relay 2024-02-22 10:12 ` Miko Larsson 2024-02-22 14:53 ` Steven Rostedt 2024-02-22 16:04 ` Steven Rostedt 2024-02-22 17:24 ` Miko Larsson 2024-02-22 10:12 ` [PATCH v2 2/3] utest/tracefs-utest: define _LARGEFILE64_SOURCE Miko Larsson via B4 Relay 2024-02-22 10:12 ` Miko Larsson 2024-02-22 10:12 ` Miko Larsson via B4 Relay [this message] 2024-02-22 10:12 ` [PATCH v2 3/3] utest/trace-utest: include libgen.h Miko Larsson
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-3-ba9cd06b41d3@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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.