From: Mirko Vogt Date: Mon, 6 Aug 2012 11:07:38 +0000 (+0000) Subject: With eglibc needs to define -D_GNU_SOURCE in cflags to avoid following error: X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=51cb49391a98dae3849f7613f9355374ea662a73;p=openwrt%2Fsvn-archive%2Farchive.git 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 SVN-Revision: 33008 --- diff --git a/libs/re/Makefile b/libs/re/Makefile index c3cc27bef4..fbafd4713f 100644 --- a/libs/re/Makefile +++ b/libs/re/Makefile @@ -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= \