With eglibc needs to define -D_GNU_SOURCE in cflags to avoid following error:

CC      build-mips/sa/pton.o
src/sa/pton.c: In function 'net_inet_pton':
src/sa/pton.c:233:7: error: 'const struct in6_addr' has no member named 's6_addr32'
src/sa/pton.c:233:7: error: 'const struct in6_addr' has no member named 's6_addr32'
src/sa/pton.c:233:7: error: 'const struct in6_addr' has no member named 's6_addr32'

Signed-off-by: Mika Laitio <mika.laitio@nokia.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33008 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mirko 2012-08-06 11:07:38 +00:00
parent 3485d682d4
commit f0389891c0

View File

@ -28,6 +28,10 @@ endef
TARGET_CFLAGS += $(FPIC)
ifneq ($(CONFIG_USE_EGLIBC),)
TARGET_CFLAGS += -D_GNU_SOURCE
endif
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
HAVE_LIBRESOLV= \