Return-Path: Delivered-To: apmail-apr-cvs-archive@www.apache.org Received: (qmail 95041 invoked from network); 23 Dec 2003 14:54:56 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Dec 2003 14:54:56 -0000 Received: (qmail 36589 invoked by uid 500); 23 Dec 2003 14:54:51 -0000 Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 36541 invoked by uid 500); 23 Dec 2003 14:54:51 -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 36528 invoked from network); 23 Dec 2003 14:54:51 -0000 Date: 23 Dec 2003 14:54:55 -0000 Message-ID: <20031223145455.95016.qmail@minotaur.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 X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N trawick 2003/12/23 06:54:55 Modified: build apr_network.m4 Log: fix a false failure with APR_CHECK_GETNAMEINFO_IPV4_MAPPED on z/OS - NI_MAXHOST is not defined, so provide fall-back logic (we could just skip NI_MAXHOST altogether, but showing the fallback will remind folks of why we can't just use NI_MAXHOST) - htonl is a macro in arpa/inet.h, so include that header so that the link is successful Revision Changes Path 1.30 +7 -0 apr/build/apr_network.m4 Index: apr_network.m4 =================================================================== RCS file: /home/cvs/apr/build/apr_network.m4,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- apr_network.m4 1 Oct 2003 14:11:40 -0000 1.29 +++ apr_network.m4 23 Dec 2003 14:54:55 -0000 1.30 @@ -198,11 +198,18 @@ #ifdef HAVE_NETINET_IN_H #include #endif +#ifdef HAVE_ARPA_INET_H +#include +#endif void main(void) { struct sockaddr_in6 sa = {0}; struct in_addr ipv4; +#if defined(NI_MAXHOST) char hbuf[NI_MAXHOST]; +#else + char hbuf[256]; +#endif unsigned int *addr32; int error;