Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/mbpfan: fix build on musl / uclibc-ng
@ 2025-08-29 16:52 Peter Korsgaard
  2025-08-29 21:53 ` Thomas Petazzoni via buildroot
  2025-09-11 19:21 ` Thomas Perale via buildroot
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Korsgaard @ 2025-08-29 16:52 UTC (permalink / raw)
  To: buildroot; +Cc: Christian Stewart

Fixes https://autobuild.buildroot.net/results/9526503fe8e756bd4444f1fb1e9cf1391c461901/

mbpfan uses vsyslog(), which is not in POSIX so only exposed by <syslog.h>
on musl and uclibc-ng if we define _DEFAULT_SOURCE:

https://git.musl-libc.org/cgit/musl/tree/include/syslog.h#n64
https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/tree/include/sys/syslog.h#n200

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/mbpfan/mbpfan.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/mbpfan/mbpfan.mk b/package/mbpfan/mbpfan.mk
index 0ac161b327..bccb3ffc16 100644
--- a/package/mbpfan/mbpfan.mk
+++ b/package/mbpfan/mbpfan.mk
@@ -10,7 +10,7 @@ MBPFAN_LICENSE = GPL-3.0+
 MBPFAN_LICENSE_FILES = COPYING
 
 define MBPFAN_BUILD_CMDS
-	$(TARGET_MAKE_ENV) CFLAGS="$(TARGET_CFLAGS)" \
+	$(TARGET_MAKE_ENV) CFLAGS="$(TARGET_CFLAGS) -D_DEFAULT_SOURCE" \
 		LDFLAGS="$(TARGET_LDFLAGS)" \
 		$(MAKE) CC="$(TARGET_CC)" -C $(@D)
 endef
-- 
2.39.5

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2025-09-11 21:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-29 16:52 [Buildroot] [PATCH] package/mbpfan: fix build on musl / uclibc-ng Peter Korsgaard
2025-08-29 21:53 ` Thomas Petazzoni via buildroot
2025-08-30  7:44   ` Peter Korsgaard
2025-09-01 10:35   ` Peter Korsgaard
2025-09-11 19:21 ` Thomas Perale via buildroot
2025-09-11 21:45   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox