]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1613. [bug] Builds would fail on machines w/o a if_nametoindex().
authorMark Andrews <marka@isc.org>
Tue, 20 Apr 2004 06:46:46 +0000 (06:46 +0000)
committerMark Andrews <marka@isc.org>
Tue, 20 Apr 2004 06:46:46 +0000 (06:46 +0000)
                        Missing #ifdef ISC_PLATFORM_HAVEIFNAMETOINDEX/#endif.
                        [RT #11119]

lib/isc/unix/interfaceiter.c

index 00a7f6ddf2c6aba46cc5e00aedfbea2251186f71..5025d946216509d508cc5d409e0e2446106edc84 100644 (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
                                }
                        }
                }