summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2006-03-11 22:25:18 +0000
committerJeff Trawick <trawick@apache.org>2006-03-11 22:25:18 +0000
commit68fcc2a0ccbf74432e760688deed00d4af74944e (patch)
tree5ded5fa66278fcee51bf842e893a98cb29eea5d3
parent59a750f09cc86e660945ba614e6629290e3086fd (diff)
downloadapr-68fcc2a0ccbf74432e760688deed00d4af74944e.tar.gz
fix compile break on systems like AIX 4.3.3 which
have most multicast definitions but are missing IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP PR: 38922 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@385180 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--network_io/unix/multicast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/network_io/unix/multicast.c b/network_io/unix/multicast.c
index 950cdf7a7..edbc22870 100644
--- a/network_io/unix/multicast.c
+++ b/network_io/unix/multicast.c
@@ -163,7 +163,7 @@ static apr_status_t do_mcast(int type, apr_socket_t *sock,
rv = errno;
}
}
-#if APR_HAVE_IPV6
+#if APR_HAVE_IPV6 && defined(IPV6_JOIN_GROUP) && defined(IPV6_LEAVE_GROUP)
else if (sock_is_ipv6(sock)) {
if (type == IP_ADD_MEMBERSHIP) {
type = IPV6_JOIN_GROUP;