From 4f173e2c8a9ee8d5cb64d56a4bad391168d78a2b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 24 Mar 2000 20:59:00 +0000 Subject: * sysdeps/mach/hurd/if_index.c: New file. * sysdeps/unix/sysv/linux/net/if.h: Moved to ... * sysdeps/gnu/net/if.h: here. (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ... * sysdeps/mach/hurd/net/if.h: ... here; this file now removed. * sysdeps/generic/net/if.h: New file. Declares just the standard functions and `struct if_nameindex' type. * socket/Makefile (headers): Add net/if.h here. * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here. * sysdeps/mach/hurd/Dist: Remove it here. * sysdeps/unix/sysv/linux/Dist: And here. * sysdeps/generic/if_index.c: Include . --- sysdeps/generic/if_index.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sysdeps/generic/if_index.c') 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 #include -#define __need_NULL #include 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) { -- cgit v1.2.3