package/xinetd: fix build with musl
PATCH 1/1 package/xinetd: fix build with musl
The ecvt(), fcvt(), and gcvt() functions from stdlib.h, used by the SIO library packaged with the xinetd sources, are masked by _GNU_SOURCE in musl libc.
--- package/xinetd/xinetd.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/xinetd/xinetd.mk +5 -0
@@ -29,6 +29,11 @@ else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),) XINETD_CFLAGS += -DNO_RPC endif +ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y) +# Make ecvt(), fcvt(), and gcvt() available for SIO library +XINETD_CFLAGS += -D_GNU_SOURCE +endif + XINETD_CONF_ENV += \ CFLAGS="$(XINETD_CFLAGS)" \ LIBS="$(XINETD_LIBS)"
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Aaron" == Aaron Sierra <[email protected]> writes:
The
ecvt(),fcvt(), andgcvt()functions fromstdlib.h, used by the SIO library packaged with the xinetd sources, are masked by_GNU_SOURCEin musl libc.Signed-off-by Aaron Sierra <[email protected]>
Committed, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedIn reply of:
Quoted 5 lines
The
ecvt(),fcvt(), andgcvt()functions fromstdlib.h, used by the SIO library packaged with the xinetd sources, are masked by_GNU_SOURCEin musl libc.Signed-off-by Aaron Sierra <[email protected]>
Applied to 2025.02.x & 2025.05.x. Thanks
Quoted 27 lines
--- package/xinetd/xinetd.mk | 5 +++++ 1 file changed, 5 insertions(+)package/xinetd/xinetd.mk +5
-0@@ -29,6 +29,11 @@ else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),) XINETD_CFLAGS += -DNO_RPC endif +ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y) +# Make ecvt(), fcvt(), and gcvt() available for SIO library +XINETD_CFLAGS += -D_GNU_SOURCE +endif + XINETD_CONF_ENV += \ CFLAGS="$(XINETD_CFLAGS)" \ LIBS="$(XINETD_LIBS)"Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot