]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
|| should have been && in #if test.
authorMark Andrews <marka@isc.org>
Tue, 4 Jun 2002 23:26:16 +0000 (23:26 +0000)
committerMark Andrews <marka@isc.org>
Tue, 4 Jun 2002 23:26:16 +0000 (23:26 +0000)
lib/isc/unix/ifiter_ioctl.c

index bbaa746f4f4d1518bcb9688f07ab3e9b403bc944..eccdeb84842d6d55180e22d1b8b9a2f94538615c 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: ifiter_ioctl.c,v 1.27 2002/05/30 01:28:53 marka Exp $ */
+/* $Id: ifiter_ioctl.c,v 1.28 2002/06/04 23:26:16 marka Exp $ */
 
 /*
  * Obtain the list of network interfaces using the SIOCGLIFCONF ioctl.
@@ -314,7 +314,7 @@ internal_current4(isc_interfaceiter_t *iter) {
        struct ifreq ifreq;
        int family;
        char strbuf[ISC_STRERRORSIZE];
-#if !defined(SIOCGLIFCONF) || defined(SIOCGLIFADDR)
+#if !defined(SIOCGLIFCONF) && defined(SIOCGLIFADDR)
        struct if_laddrreq if_laddrreq;
        int i, bits;
 #endif
@@ -392,7 +392,7 @@ internal_current4(isc_interfaceiter_t *iter) {
        if ((ifreq.ifr_flags & IFF_LOOPBACK) != 0)
                iter->current.flags |= INTERFACE_F_LOOPBACK;
 
-#if !defined(SIOCGLIFCONF) || defined(SIOCGLIFADDR)
+#if !defined(SIOCGLIFCONF) && defined(SIOCGLIFADDR)
        if (family == AF_INET) 
                goto inet;