aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-06-07 12:37:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-06-07 12:37:49 +0000
commit72d33803e7eae9924d7f96bb394549909838e322 (patch)
tree64ef2d79c01ac84b7fee5fa8bde0b5196287e833 /package
parent93372a3e69e22c31e4664b8d791de4e08416fea4 (diff)
downloadupstream-72d33803e7eae9924d7f96bb394549909838e322.tar.gz
upstream-72d33803e7eae9924d7f96bb394549909838e322.tar.bz2
upstream-72d33803e7eae9924d7f96bb394549909838e322.zip
iproute2: fix build errors with newer versions of eglibc
SVN-Revision: 32103
Diffstat (limited to 'package')
-rw-r--r--package/iproute2/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/iproute2/Makefile b/package/iproute2/Makefile
index 640b5658fd..80681f5577 100644
--- a/package/iproute2/Makefile
+++ b/package/iproute2/Makefile
@@ -63,6 +63,12 @@ define Build/Configure
> $(PKG_BUILD_DIR)/include/SNAPSHOT.h
endef
+ifdef CONFIG_USE_EGLIBC
+ ifndef CONFIG_EGLIBC_VERSION_2_13
+ TARGET_CFLAGS += -DHAVE_SETNS
+ endif
+endif
+
MAKE_FLAGS += \
EXTRA_CCOPTS="$(TARGET_CFLAGS) -I../include -I$(STAGING_DIR)/usr/include/libnl-tiny" \
KERNEL_INCLUDE="$(LINUX_DIR)/include" \