apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/build apr_network.m4
Date Tue, 23 Dec 2003 14:33:17 GMT
trawick     2003/12/23 06:33:17

  Modified:    build    Tag: APR_0_9_BRANCH 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
  No                   revision
  No                   revision
  1.23.2.1  +7 -0      apr/build/apr_network.m4
  
  Index: apr_network.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_network.m4,v
  retrieving revision 1.23
  retrieving revision 1.23.2.1
  diff -u -r1.23 -r1.23.2.1
  --- apr_network.m4	2 Sep 2003 08:42:56 -0000	1.23
  +++ apr_network.m4	23 Dec 2003 14:33:16 -0000	1.23.2.1
  @@ -164,11 +164,18 @@
   #ifdef HAVE_NETINET_IN_H
   #include <netinet/in.h>
   #endif
  +#ifdef HAVE_ARPA_INET_H
  +#include <arpa/inet.h>
  +#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;
   
  
  
  

Mime
View raw message