[Buildroot] [PATCH] package/mbpfan: fix build on musl / uclibc-ng

Thomas Perale thomas.perale at mind.be
Thu Sep 11 19:21:17 UTC 2025


In reply of:
> 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 at korsgaard.com>

Applied to 2025.02.x & 2025.05.x. Thanks

> ---
>  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 at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot


More information about the buildroot mailing list