aboutsummaryrefslogtreecommitdiffstats
path: root/www/apache22
diff options
context:
space:
mode:
authorohauer <ohauer@FreeBSD.org>2012-09-05 15:40:26 +0800
committerohauer <ohauer@FreeBSD.org>2012-09-05 15:40:26 +0800
commit6acb154755a3fbf0a44c28dac5385acf45241c6c (patch)
tree63d6a7ff05c753ced106a44f2ee553e109cb5f7c /www/apache22
parent40349d11d4e9f196fba2945ebd5ba566d619efa2 (diff)
downloadfreebsd-ports-gnome-6acb154755a3fbf0a44c28dac5385acf45241c6c.tar.gz
freebsd-ports-gnome-6acb154755a3fbf0a44c28dac5385acf45241c6c.tar.zst
freebsd-ports-gnome-6acb154755a3fbf0a44c28dac5385acf45241c6c.zip
- fix build on IPv4 only systems
Thanks to John Marshall to identify the issue!
Diffstat (limited to 'www/apache22')
-rw-r--r--www/apache22/files/patch-server__config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/www/apache22/files/patch-server__config.c b/www/apache22/files/patch-server__config.c
index 732a65f1f417..7bd6ea83a351 100644
--- a/www/apache22/files/patch-server__config.c
+++ b/www/apache22/files/patch-server__config.c
@@ -4,14 +4,16 @@ https://issues.apache.org/bugzilla/show_bug.cgi?id=53823
==================================================================
--- ./server/config.c.orig 2010-10-07 18:56:54.000000000 +0200
-+++ ./server/config.c 2012-09-03 21:23:31.000000000 +0200
-@@ -1979,6 +1979,9 @@
++++ ./server/config.c 2012-09-05 08:39:18.000000000 +0200
+@@ -1979,6 +1979,11 @@
/* NOT virtual host; don't match any real network interface */
rv = apr_sockaddr_info_get(&s->addrs->host_addr,
NULL, APR_INET, 0, 0, p);
++#if APR_HAVE_IPV6
+ if (rv != APR_SUCCESS)
+ rv = apr_sockaddr_info_get(&s->addrs->host_addr,
+ NULL, APR_INET6, 0, 0, p);
++#endif
ap_assert(rv == APR_SUCCESS); /* otherwise: bug or no storage */
s->addrs->host_port = 0; /* matches any port */