]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ll_map: use net/if.h to get prototype
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 27 Mar 2013 16:28:58 +0000 (09:28 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 27 Mar 2013 16:28:58 +0000 (09:28 -0700)
Better to get prototype from system headers

lib/ll_map.c

index 1c330020a392bc2376f89dad033be77e48611049..e9ae129611e581faa12f37ae9bbd59ea95ddf9d8 100644 (file)
 #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;