]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
configure: add missing INCLUDE to netnsid detection
authorJiri Benc <jbenc@redhat.com>
Wed, 8 Apr 2015 19:42:00 +0000 (21:42 +0200)
committerStephen Hemminger <shemming@brocade.com>
Fri, 10 Apr 2015 20:23:35 +0000 (13:23 -0700)
Fixes: d116ff34145b0 ("ip netns: Fix rtnl error while print netns list")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
configure

index 631938e97206f93d82e4f1fc9967af475c1fcaf1..e54f4b6db5e87a6535239b57e4346e05ca4cf4a5 100755 (executable)
--- a/configure
+++ b/configure
@@ -224,7 +224,7 @@ check_netnsid()
 #include <linux/rtnetlink.h>
 int test_def = RTM_GETNSID;
 EOF
-    $CC -c $TMPDIR/netnsid.c >/dev/null 2>&1
+    $CC -I$INCLUDE -c $TMPDIR/netnsid.c >/dev/null 2>&1
     if [ $? -eq 0 ]
     then
        echo "IP_CONFIG_NETNSID:=y" >> Config