summaryrefslogtreecommitdiff
path: root/sysdeps/generic/if_index.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/if_index.c')
-rw-r--r--sysdeps/generic/if_index.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/generic/if_index.c b/sysdeps/generic/if_index.c
index e8af824e66..4dc2a5511a 100644
--- a/sysdeps/generic/if_index.c
+++ b/sysdeps/generic/if_index.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997,98,99,2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -16,8 +16,8 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#include <net/if.h>
#include <errno.h>
-#define __need_NULL
#include <stddef.h>
unsigned int
@@ -36,7 +36,6 @@ if_indextoname (unsigned int ifindex, char *ifname)
}
stub_warning (if_indextoname)
-struct if_nameindex; /* inhibit warning */
void
if_freenameindex (struct if_nameindex *ifn)
{