| Message ID | 20250716185626.365031-1-aaron@bubbl-tek.com |
|---|---|
| State | Accepted |
| Headers | show |
| Series | package/xinetd: fix build with musl | expand |
>>>>> "Aaron" == Aaron Sierra <aaron@bubbl-tek.com> writes: > 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. > Signed-off-by: Aaron Sierra <aaron@bubbl-tek.com> Committed, thanks.
In reply of: > 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. > > Signed-off-by: Aaron Sierra <aaron@bubbl-tek.com> Applied to 2025.02.x & 2025.05.x. Thanks > --- > package/xinetd/xinetd.mk | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/package/xinetd/xinetd.mk b/package/xinetd/xinetd.mk > index f58c26f02a..f63a8a2251 100644 > --- a/package/xinetd/xinetd.mk > +++ b/package/xinetd/xinetd.mk > @@ -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)" > -- > 2.43.0 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot
diff --git a/package/xinetd/xinetd.mk b/package/xinetd/xinetd.mk index f58c26f02a..f63a8a2251 100644 --- a/package/xinetd/xinetd.mk +++ b/package/xinetd/xinetd.mk @@ -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)"
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. Signed-off-by: Aaron Sierra <aaron@bubbl-tek.com> --- package/xinetd/xinetd.mk | 5 +++++ 1 file changed, 5 insertions(+)