diff options
author | Roland McGrath <roland@gnu.org> | 2000-03-24 20:59:00 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-03-24 20:59:00 +0000 |
commit | 4f173e2c8a9ee8d5cb64d56a4bad391168d78a2b (patch) | |
tree | 72b8969fa036cc15ad3b3d4c9571ce63665fbfc9 /sysdeps/generic/if_index.c | |
parent | acdacef901d20f6693ae8beb4169b9dbf0a46e81 (diff) | |
download | glibc-4f173e2c8a9ee8d5cb64d56a4bad391168d78a2b.tar.gz glibc-4f173e2c8a9ee8d5cb64d56a4bad391168d78a2b.tar.xz glibc-4f173e2c8a9ee8d5cb64d56a4bad391168d78a2b.zip |
* 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 <net/if.h>.
Diffstat (limited to 'sysdeps/generic/if_index.c')
-rw-r--r-- | sysdeps/generic/if_index.c | 5 |
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) { |