diff options
author | clement <clement@FreeBSD.org> | 2007-09-17 03:05:41 +0800 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2007-09-17 03:05:41 +0800 |
commit | 4aa1a0a5519256ea952aec5da4538aaf751674ef (patch) | |
tree | bcc64ef4f86fd46ff5e289b5204b8edf438cfe79 /www/apache22 | |
parent | 6bec131abd5e85a9e1dbf1141797d01262098bc4 (diff) | |
download | freebsd-ports-graphics-4aa1a0a5519256ea952aec5da4538aaf751674ef.tar.gz freebsd-ports-graphics-4aa1a0a5519256ea952aec5da4538aaf751674ef.tar.zst freebsd-ports-graphics-4aa1a0a5519256ea952aec5da4538aaf751674ef.zip |
- Fix build when WITHOUT_IPV6 is defined and system is IPv6-free
PR: ports/115200
Submitted by: anray
Also reported by: Peter Jeremy
Diffstat (limited to 'www/apache22')
-rw-r--r-- | www/apache22/files/patch-srclib-apr-network_io-unix-multicast.c | 23 |
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 00000000000..fe186cba42f --- /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) + { |