mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Mild decrufting in resolv code.
This commit is contained in:
@ -1,5 +1,10 @@
|
|||||||
2013-08-27 Roland McGrath <roland@hack.frob.com>
|
2013-08-27 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
|
||||||
|
only under [SIOCGIFCONF && SIOCGIFNETMASK].
|
||||||
|
|
||||||
|
* resolv/res_mkquery.c: Include <sys/time.h>.
|
||||||
|
|
||||||
* inet/ifreq.c: Moved to ...
|
* inet/ifreq.c: Moved to ...
|
||||||
* sysdeps/unix/ifreq.c: ... here.
|
* sysdeps/unix/ifreq.c: ... here.
|
||||||
* inet/ifreq.c: New file, true stub version.
|
* inet/ifreq.c: New file, true stub version.
|
||||||
|
@ -359,6 +359,7 @@ _res_hconf_init (void)
|
|||||||
|
|
||||||
|
|
||||||
#ifndef NOT_IN_libc
|
#ifndef NOT_IN_libc
|
||||||
|
# if defined SIOCGIFCONF && defined SIOCGIFNETMASK
|
||||||
/* List of known interfaces. */
|
/* List of known interfaces. */
|
||||||
libc_freeres_ptr (
|
libc_freeres_ptr (
|
||||||
static struct netaddr
|
static struct netaddr
|
||||||
@ -373,6 +374,7 @@ static struct netaddr
|
|||||||
} ipv4;
|
} ipv4;
|
||||||
} u;
|
} u;
|
||||||
} *ifaddrs);
|
} *ifaddrs);
|
||||||
|
# endif
|
||||||
|
|
||||||
/* Reorder addresses returned in a hostent such that the first address
|
/* Reorder addresses returned in a hostent such that the first address
|
||||||
is an address on the local subnet, if there is such an address.
|
is an address on the local subnet, if there is such an address.
|
||||||
|
@ -77,6 +77,7 @@ static const char rcsid[] = "$BINDId: res_mkquery.c,v 8.12 1999/10/13 16:39:40 v
|
|||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
/* Options. Leave them on. */
|
/* Options. Leave them on. */
|
||||||
/* #define DEBUG */
|
/* #define DEBUG */
|
||||||
|
Reference in New Issue
Block a user