apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r746118 - /apr/apr/branches/1.3.x/network_io/unix/sockaddr.c
Date Fri, 20 Feb 2009 02:31:28 GMT
Author: bojan
Date: Fri Feb 20 02:31:27 2009
New Revision: 746118

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

Modified:
    apr/apr/branches/1.3.x/network_io/unix/sockaddr.c

Modified: apr/apr/branches/1.3.x/network_io/unix/sockaddr.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/network_io/unix/sockaddr.c?rev=746118&r1=746117&r2=746118&view=diff
==============================================================================
--- apr/apr/branches/1.3.x/network_io/unix/sockaddr.c (original)
+++ apr/apr/branches/1.3.x/network_io/unix/sockaddr.c Fri Feb 20 02:31:27 2009
@@ -380,7 +380,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