summaryrefslogtreecommitdiff
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
parent93372a3e69e22c31e4664b8d791de4e08416fea4 (diff)
downloadmtk-20170518-72d33803e7eae9924d7f96bb394549909838e322.zip
mtk-20170518-72d33803e7eae9924d7f96bb394549909838e322.tar.gz
mtk-20170518-72d33803e7eae9924d7f96bb394549909838e322.tar.bz2
iproute2: fix build errors with newer versions of eglibc
SVN-Revision: 32103
-rw-r--r--package/iproute2/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/iproute2/Makefile b/package/iproute2/Makefile
index 640b565..80681f5 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" \