From: lemmi <lemmi@nerd2nerd.org>
To: passt-dev@passt.top
Subject: [PATCH] passt.c: explicitly include libgen.h for basename
Date: Sat, 11 May 2024 17:45:42 +0200 [thread overview]
Message-ID: <20240511154555.22176-1-lemmi@nerd2nerd.org> (raw)
fixes implicit declaration warning on musl
Signed-off-by: lemmi <lemmi@nerd2nerd.org>
---
passt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/passt.c b/passt.c
index e93b6be..771b8a7 100644
--- a/passt.c
+++ b/passt.c
@@ -35,6 +35,7 @@
#include <syslog.h>
#include <sys/prctl.h>
#include <netinet/if_ether.h>
+#include <libgen.h>
#ifdef HAS_GETRANDOM
#include <sys/random.h>
#endif
--
@@ -35,6 +35,7 @@
#include <syslog.h>
#include <sys/prctl.h>
#include <netinet/if_ether.h>
+#include <libgen.h>
#ifdef HAS_GETRANDOM
#include <sys/random.h>
#endif
--
2.45.0
next reply other threads:[~2024-05-11 15:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-11 15:45 lemmi [this message]
2024-05-13 1:36 ` [PATCH] passt.c: explicitly include libgen.h for basename David Gibson
2024-05-13 21:36 ` Stefano Brivio
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=20240511154555.22176-1-lemmi@nerd2nerd.org \
--to=lemmi@nerd2nerd.org \
--cc=passt-dev@passt.top \
/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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
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 IMAP folder(s).