From cvs-return-3203-apmail-apr-cvs-archive=apr.apache.org@apr.apache.org Sun Mar 24 16:01:34 2002 Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 788 invoked by uid 500); 24 Mar 2002 16:01:34 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 777 invoked from network); 24 Mar 2002 16:01:33 -0000 Date: 24 Mar 2002 16:01:33 -0000 Message-ID: <20020324160133.29133.qmail@icarus.apache.org> From: trawick@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/build apr_network.m4 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N trawick 02/03/24 08:01:33 Modified: . CHANGES build apr_network.m4 Log: Make sure gethostbyname() can handle 255.255.255.255. Otherwise, we won't trust it to deal with numeric address strings properly and will use our own logic in apr_sockaddr_info_get(). This fixes an assertion failure at Apache startup when using vhosts on HP-UX. Revision Changes Path 1.246 +7 -0 apr/CHANGES Index: CHANGES =================================================================== RCS file: /home/cvs/apr/CHANGES,v retrieving revision 1.245 retrieving revision 1.246 diff -u -r1.245 -r1.246 --- CHANGES 20 Mar 2002 21:30:08 -0000 1.245 +++ CHANGES 24 Mar 2002 16:01:33 -0000 1.246 @@ -1,4 +1,11 @@ Changes with APR b1 + + *) Make sure gethostbyname() can handle 255.255.255.255 if we + are to trust it to handle numeric address strings in + apr_sockaddr_info_get(). This fixes a problem on HP-UX + which led to an assertion failure at Apache startup when + using vhosts. [Jeff Trawick] + *) Don't mask SIGUSR2 [Jin Hong ] *) Load libraries if they not MH_BUNDLE, but if they are not, it 1.15 +4 -0 apr/build/apr_network.m4 Index: apr_network.m4 =================================================================== RCS file: /home/cvs/apr/build/apr_network.m4,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- apr_network.m4 14 Mar 2002 19:28:15 -0000 1.14 +++ apr_network.m4 24 Mar 2002 16:01:33 -0000 1.15 @@ -197,6 +197,10 @@ if (he == NULL) { exit(1); } + he = gethostbyname("255.255.255.255"); + if (he == NULL) { + exit(1); + } else { exit(0); }