mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
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:
committed by
Thomas Perale
parent
b0d06c13fe
commit
8bd2be012e
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user