diff options
author | Bojan Smojver <bojan@apache.org> | 2009-02-20 02:28:23 +0000 |
---|---|---|
committer | Bojan Smojver <bojan@apache.org> | 2009-02-20 02:28:23 +0000 |
commit | bc93ec1dfcff933ccf1611546af2556ecab43165 (patch) | |
tree | 015ee5249aebec7e10a9f8b824669bb8d4223c38 /network_io | |
parent | 1a966844f904ceba614f662f73511f1014509075 (diff) | |
download | apr-bc93ec1dfcff933ccf1611546af2556ecab43165.tar.gz |
Fix compilation error on systems that do not have IPV6.
Patch by Julien Charbon <jch 4js.com>.
PR 46601.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@746115 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r-- | network_io/unix/sockaddr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/network_io/unix/sockaddr.c b/network_io/unix/sockaddr.c index c5d3d6e31..4e9783d4e 100644 --- a/network_io/unix/sockaddr.c +++ b/network_io/unix/sockaddr.c @@ -388,7 +388,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; } |