summaryrefslogtreecommitdiff
path: root/lib/libc/net/if_nameindex.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-22 19:04:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-22 19:04:43 +0000
commit13514424ffe8fbadee88905de73dd6f71ea9d12b (patch)
tree7741f38ff55797e0533657a61430d2501148de60 /lib/libc/net/if_nameindex.c
parenta28b8cf11d1bde8b27761deef0ac41efd5fbe67c (diff)
Wall
Diffstat (limited to 'lib/libc/net/if_nameindex.c')
-rw-r--r--lib/libc/net/if_nameindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/if_nameindex.c b/lib/libc/net/if_nameindex.c
index 8643397db27..9e4a71faa9e 100644
--- a/lib/libc/net/if_nameindex.c
+++ b/lib/libc/net/if_nameindex.c
@@ -38,6 +38,7 @@
#include <net/if.h>
#include <net/if_dl.h>
#include <errno.h>
+#include <unistd.h>
#include <string.h>
struct if_nameindex *
@@ -48,7 +49,6 @@ if_nameindex(void)
struct ifconf ifconf;
char lastname[IFNAMSIZ], *c, *inbuf;
struct if_nameindex *n;
- struct sockaddr_dl *sd;
struct sockaddr *sa;
void *p;