apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r746115 - /apr/apr/trunk/network_io/unix/sockaddr.c
Date Fri, 20 Feb 2009 02:28:24 GMT
Author: bojan
Date: Fri Feb 20 02:28:23 2009
New Revision: 746115

URL: http://svn.apache.org/viewvc?rev=746115&view=rev
Log:
Fix compilation error on systems that do not have IPV6.
Patch by Julien Charbon <jch 4js.com>.
PR 46601.

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

Modified: apr/apr/trunk/network_io/unix/sockaddr.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sockaddr.c?rev=746115&r1=746114&r2=746115&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/sockaddr.c (original)
+++ apr/apr/trunk/network_io/unix/sockaddr.c Fri Feb 20 02:28:23 2009
@@ -388,7 +388,11 @@
         /* Ignore anything bogus: getaddrinfo in some old versions of
          * glibc will return AF_UNIX entries for APR_UNSPEC+AI_PASSIVE
          * lookups. */
+#if APR_HAVE_IPV6
         if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) {
+#else
+        if (ai->ai_family != AF_INET) {
+#endif
             ai = ai->ai_next;
             continue;
         }



Mime
View raw message