mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
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:
parent
2dc1141d73
commit
fa81ddd7b9
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue