2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-05 09:05:40 +00:00

1667. [port] linux: not all versions have IF_NAMESIZE.

This commit is contained in:
Mark Andrews
2004-06-19 00:48:15 +00:00
parent 36e0109263
commit 358043e40f
3 changed files with 19 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: interfaceiter.c,v 1.36 2004/04/20 06:46:46 marka Exp $ */
/* $Id: interfaceiter.c,v 1.37 2004/06/19 00:48:15 marka Exp $ */
#include <config.h>
@@ -65,6 +65,11 @@ get_addr(unsigned int family, isc_netaddr_t *dst, struct sockaddr *src,
{
struct sockaddr_in6 *sa6;
#if !defined(ISC_PLATFORM_HAVEIFNAMETOINDEX) || \
!defined(ISC_PLATFORM_HAVESCOPEID)
UNUSED(ifname);
#endif
/* clear any remaining value for safety */
memset(dst, 0, sizeof(*dst));