linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] include libgen.h for basename API
@ 2024-03-25  6:15 Khem Raj
  2024-03-27 11:10 ` Mariusz Tkaczyk
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2024-03-25  6:15 UTC (permalink / raw)
  To: linux-raid; +Cc: Khem Raj

Musl does no more provide it via string.h therefore builds with newer
compilers e.g. clang-18 fails due to missing prototype for basename
therefore add libgen.h to included headers list

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 Monitor.c        | 1 +
 platform-intel.c | 1 +
 super-intel.c    | 1 +
 3 files changed, 3 insertions(+)

diff --git a/Monitor.c b/Monitor.c
index 824a69f..e3942e1 100644
--- a/Monitor.c
+++ b/Monitor.c
@@ -26,6 +26,7 @@
 #include	"udev.h"
 #include	"md_p.h"
 #include	"md_u.h"
+#include  <libgen.h>
 #include	<sys/wait.h>
 #include	<limits.h>
 #include	<syslog.h>
diff --git a/platform-intel.c b/platform-intel.c
index ac282bc..5d6687d 100644
--- a/platform-intel.c
+++ b/platform-intel.c
@@ -19,6 +19,7 @@
 #include "mdadm.h"
 #include "platform-intel.h"
 #include "probe_roms.h"
+#include <libgen.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/super-intel.c b/super-intel.c
index dbea235..881dbda 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -23,6 +23,7 @@
 #include "dlink.h"
 #include "sha1.h"
 #include "platform-intel.h"
+#include <libgen.h>
 #include <values.h>
 #include <scsi/sg.h>
 #include <ctype.h>
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-27 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-25  6:15 [PATCH] include libgen.h for basename API Khem Raj
2024-03-27 11:10 ` Mariusz Tkaczyk

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 NNTP newsgroup(s).