From f890a59b10b6a4b8723b86545e8b38ccc690021c Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 27 Aug 2013 10:49:36 -0700 Subject: Mild decrufting in resolv code. --- resolv/res_hconf.c | 2 ++ resolv/res_mkquery.c | 1 + 2 files changed, 3 insertions(+) (limited to 'resolv') diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c index 8ac46380a3..a92751b873 100644 --- a/resolv/res_hconf.c +++ b/resolv/res_hconf.c @@ -359,6 +359,7 @@ _res_hconf_init (void) #ifndef NOT_IN_libc +# if defined SIOCGIFCONF && defined SIOCGIFNETMASK /* List of known interfaces. */ libc_freeres_ptr ( static struct netaddr @@ -373,6 +374,7 @@ static struct netaddr } ipv4; } u; } *ifaddrs); +# endif /* Reorder addresses returned in a hostent such that the first address is an address on the local subnet, if there is such an address. diff --git a/resolv/res_mkquery.c b/resolv/res_mkquery.c index c0798dc54e..6170763fa3 100644 --- a/resolv/res_mkquery.c +++ b/resolv/res_mkquery.c @@ -77,6 +77,7 @@ static const char rcsid[] = "$BINDId: res_mkquery.c,v 8.12 1999/10/13 16:39:40 v #include #include #include +#include /* Options. Leave them on. */ /* #define DEBUG */ -- cgit 1.4.1