apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r124813 - /apr/apr/trunk/network_io/unix/multicast.c
Date Mon, 10 Jan 2005 16:36:57 GMT
Author: jorton
Date: Mon Jan 10 08:36:56 2005
New Revision: 124813

URL: http://svn.apache.org/viewcvs?view=rev&rev=124813
Log:
* network_io/unix/multicast.c: Use #ifdef not #if for HAVE_GETIFADDRS.
(find_if_index): Fix unused variables warnings if HAVE_GETIFADDRS is
undefined.

Modified:
   apr/apr/trunk/network_io/unix/multicast.c

Modified: apr/apr/trunk/network_io/unix/multicast.c
Url: http://svn.apache.org/viewcvs/apr/apr/trunk/network_io/unix/multicast.c?view=diff&rev=124813&p1=apr/apr/trunk/network_io/unix/multicast.c&r1=124812&p2=apr/apr/trunk/network_io/unix/multicast.c&r2=124813
==============================================================================
--- apr/apr/trunk/network_io/unix/multicast.c	(original)
+++ apr/apr/trunk/network_io/unix/multicast.c	Mon Jan 10 08:36:56 2005
@@ -19,7 +19,7 @@
 #include "apr_portable.h"
 #include "apr_arch_inherit.h"
 
-#if HAVE_GETIFADDRS
+#ifdef HAVE_GETIFADDRS
 #include <net/if.h>
 #include <ifaddrs.h>
 #endif
@@ -59,6 +59,7 @@
 static unsigned int find_if_index(const apr_sockaddr_t *iface)
 {
     unsigned int index = 0;
+#ifdef HAVE_GETIFADDRS
     struct ifaddrs *ifp, *ifs;
 
     /**
@@ -69,7 +70,6 @@
      *       getifaddrs. The license is acceptable, but, It is a fairly large 
      *       chunk of code.
      */
-#if HAVE_GETIFADDRS
     if (getifaddrs(&ifs) != 0) {
         return 0;
     }

Mime
View raw message