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.

Signed-off-by: Aaron Sierra <aaron@bubbl-tek.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 2982fac48e)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Aaron Sierra
2025-07-16 13:56:25 -05:00
committed by Thomas Perale
parent b0d06c13fe
commit 8bd2be012e

View File

@@ -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)"