From fa81ddd7b9a65cca5c95fa9356acd78f86730827 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 20 Apr 2004 06:46:46 +0000 Subject: [PATCH] 1613. [bug] Builds would fail on machines w/o a if_nametoindex(). Missing #ifdef ISC_PLATFORM_HAVEIFNAMETOINDEX/#endif. [RT #11119] --- lib/isc/unix/interfaceiter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/isc/unix/interfaceiter.c b/lib/isc/unix/interfaceiter.c index 00a7f6ddf2..5025d94621 100644 --- a/lib/isc/unix/interfaceiter.c +++ b/lib/isc/unix/interfaceiter.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: interfaceiter.c,v 1.35 2004/03/05 05:11:45 marka Exp $ */ +/* $Id: interfaceiter.c,v 1.36 2004/04/20 06:46:46 marka Exp $ */ #include @@ -106,6 +106,7 @@ get_addr(unsigned int family, isc_netaddr_t *dst, struct sockaddr *src, (isc_uint32_t)zone16); dst->type.in6.s6_addr[2] = 0; dst->type.in6.s6_addr[3] = 0; +#ifdef ISC_PLATFORM_HAVEIFNAMETOINDEX } else if (ifname != NULL) { unsigned int zone; @@ -120,6 +121,7 @@ get_addr(unsigned int family, isc_netaddr_t *dst, struct sockaddr *src, isc_netaddr_setzone(dst, (isc_uint32_t)zone); } +#endif } } }