1613. [bug] Builds would fail on machines w/o a if_nametoindex().

Missing #ifdef ISC_PLATFORM_HAVEIFNAMETOINDEX/#endif.
                        [RT #11119]
This commit is contained in:
Mark Andrews 2004-04-20 06:46:46 +00:00
parent 2dc1141d73
commit fa81ddd7b9

View file

@ -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 <config.h>
@ -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
}
}
}