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:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user