Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2012 07:40:26 +0000 (UTC)
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r303687 - head/www/apache22/files
Message-ID:  <201209050740.q857eQ3h096904@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ohauer
Date: Wed Sep  5 07:40:26 2012
New Revision: 303687
URL: http://svn.freebsd.org/changeset/ports/303687

Log:
  - fix build on IPv4 only systems
  
  Thanks to John Marshall to identify the issue!

Modified:
  head/www/apache22/files/patch-server__config.c

Modified: head/www/apache22/files/patch-server__config.c
==============================================================================
--- head/www/apache22/files/patch-server__config.c	Wed Sep  5 06:49:36 2012	(r303686)
+++ head/www/apache22/files/patch-server__config.c	Wed Sep  5 07:40:26 2012	(r303687)
@@ -4,14 +4,16 @@ https://issues.apache.org/bugzilla/show_
 
 ==================================================================
 --- ./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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209050740.q857eQ3h096904>