summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Laforet <clement@FreeBSD.org>2007-09-16 19:05:41 +0000
committerClement Laforet <clement@FreeBSD.org>2007-09-16 19:05:41 +0000
commit126240de1d16eea323ae4836f3730609ac4e0736 (patch)
treebba017bef12564998df21f01080900efacb72497
parentUpdate to 1.0.4 (diff)
- Fix build when WITHOUT_IPV6 is defined and system is IPv6-free
PR: ports/115200 Submitted by: anray Also reported by: Peter Jeremy
Notes
Notes: svn path=/head/; revision=199576
-rw-r--r--www/apache22/files/patch-srclib-apr-network_io-unix-multicast.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/www/apache22/files/patch-srclib-apr-network_io-unix-multicast.c b/www/apache22/files/patch-srclib-apr-network_io-unix-multicast.c
new file mode 100644
index 000000000000..fe186cba42fb
--- /dev/null
+++ b/www/apache22/files/patch-srclib-apr-network_io-unix-multicast.c
@@ -0,0 +1,23 @@
+--- srclib/apr/network_io/unix/multicast.c.orig 2007-08-05 00:58:21.000000000 +0300
++++ srclib/apr/network_io/unix/multicast.c 2007-08-05 00:59:51.000000000 +0300
+@@ -57,11 +57,10 @@
+ }
+ }
+
+-#if APR_HAVE_IPV6
+ static unsigned int find_if_index(const apr_sockaddr_t *iface)
+ {
+ unsigned int index = 0;
+-#ifdef HAVE_GETIFADDRS
++#if defined(HAVE_GETIFADDRS) && APR_HAVE_IPV6
+ struct ifaddrs *ifp, *ifs;
+
+ /**
+@@ -92,6 +91,7 @@
+ return index;
+ }
+
++#if APR_HAVE_IPV6
+ static void fill_mip_v6(struct ipv6_mreq *mip, const apr_sockaddr_t *mcast,
+ const apr_sockaddr_t *iface)
+ {