add _GNU_SOURCE to CPPFLAGS required to include <bits/socket.h> on recent eglibc revisions

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17749 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Nicolas Thill 2009-09-26 19:01:50 +00:00
parent 1a3bb764f6
commit f5007fbcc3
2 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ define Package/swconfig
endef endef
TARGET_CPPFLAGS := \ TARGET_CPPFLAGS := \
-D_GNU_SOURCE \
-I$(STAGING_DIR)/usr/include/libnl-tiny \ -I$(STAGING_DIR)/usr/include/libnl-tiny \
-I$(LINUX_DIR)/include \ -I$(LINUX_DIR)/include \
-I$(PKG_BUILD_DIR) \ -I$(PKG_BUILD_DIR) \

View File

@ -61,6 +61,7 @@ define Build/Prepare
endef endef
TARGET_CPPFLAGS := \ TARGET_CPPFLAGS := \
-D_GNU_SOURCE \
-I$(STAGING_DIR)/usr/include/libnl-tiny \ -I$(STAGING_DIR)/usr/include/libnl-tiny \
$(TARGET_CPPFLAGS) $(TARGET_CPPFLAGS)