commit | 5f21823922ca1aabb47fb837260e541db34de79a | [log] [tgz] |
---|---|---|
author | Stephen Hemminger <stephen@networkplumber.org> | Wed Mar 27 09:28:58 2013 -0700 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Wed Mar 27 09:28:58 2013 -0700 |
tree | 30da780d9090af75513031d790e68bcf1de2359f | |
parent | 3e26112a02a25b8f4ba3860f28ff8c6850fbed43 [diff] |
ll_map: use net/if.h to get prototype Better to get prototype from system headers
diff --git a/lib/ll_map.c b/lib/ll_map.c index 1c33002..e9ae129 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;