summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbojan <bojan@13f79535-47bb-0310-9956-ffa450edef68>2009-02-20 02:31:27 +0000
committerbojan <bojan@13f79535-47bb-0310-9956-ffa450edef68>2009-02-20 02:31:27 +0000
commitffefd0e9a134896fd1830049d230ff67d528b3a1 (patch)
tree718d4900926f4b047a1df9425a9f671c142afc17
parent10d67ff0ec9112b2b601c4ab1040a9998e474597 (diff)
downloadlibapr-ffefd0e9a134896fd1830049d230ff67d528b3a1.tar.gz
Backport r746115 from the trunk.
Fix compilation error on systems that do not have IPV6. Patch by Julien Charbon <jch 4js.com>. PR 46601. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.3.x@746118 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--network_io/unix/sockaddr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/network_io/unix/sockaddr.c b/network_io/unix/sockaddr.c
index 4e79f8934..335fa71f1 100644
--- a/network_io/unix/sockaddr.c
+++ b/network_io/unix/sockaddr.c
@@ -380,7 +380,11 @@ static apr_status_t call_resolver(apr_sockaddr_t **sa,
/* 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;
}