From: Felix Fietkau Date: Thu, 7 Jun 2012 12:37:49 +0000 (+0000) Subject: iproute2: fix build errors with newer versions of eglibc X-Git-Tag: reboot~13665 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=72d33803e7eae9924d7f96bb394549909838e322;p=openwrt%2Fstaging%2Fnoltari.git iproute2: fix build errors with newer versions of eglibc SVN-Revision: 32103 --- 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" \