aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-03-27 09:28:58 -0700
committerStephen Hemminger <stephen@networkplumber.org>2013-03-27 09:28:58 -0700
commit5f21823922ca1aabb47fb837260e541db34de79a (patch)
tree30da780d9090af75513031d790e68bcf1de2359f
parent3e26112a02a25b8f4ba3860f28ff8c6850fbed43 (diff)
downloadplatform_external_iproute2-5f21823922ca1aabb47fb837260e541db34de79a.tar.gz
platform_external_iproute2-5f21823922ca1aabb47fb837260e541db34de79a.tar.bz2
platform_external_iproute2-5f21823922ca1aabb47fb837260e541db34de79a.zip
ll_map: use net/if.h to get prototype
Better to get prototype from system headers
-rw-r--r--lib/ll_map.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ll_map.c b/lib/ll_map.c
index 1c330020..e9ae1296 100644
--- a/lib/ll_map.c
+++ b/lib/ll_map.c
@@ -18,13 +18,11 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h>
-#include <linux/if.h>
+#include <net/if.h>
#include "libnetlink.h"
#include "ll_map.h"
-extern unsigned int if_nametoindex (const char *);
-
struct ll_cache
{
struct ll_cache *idx_next;