apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr/network_io/unix sa_common.c
Date Mon, 23 Jul 2001 16:05:00 GMT
jerenkrantz    01/07/23 09:05:00

  Modified:    network_io/unix sa_common.c
  Log:
  Enable getaddrinfo even if we don't have IPv6.
  
  We're not aware of any platforms that have getaddrinfo and not IPv6, but
  we think this code could work with IPv4-only platforms anyway.
  Reviewed by:	Jeff Trawick
  
  Revision  Changes    Path
  1.36      +2 -2      apr/network_io/unix/sa_common.c
  
  Index: sa_common.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/sa_common.c,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- sa_common.c	2001/07/21 06:41:09	1.35
  +++ sa_common.c	2001/07/23 16:05:00	1.36
  @@ -300,7 +300,7 @@
       return APR_SUCCESS;
   }
   
  -#if defined(HAVE_GETADDRINFO) && APR_HAVE_IPV6
  +#if defined(HAVE_GETADDRINFO)
   static void save_addrinfo(apr_pool_t *p, apr_sockaddr_t *sa, 
                             struct addrinfo *ai, apr_port_t port)
   {
  @@ -333,7 +333,7 @@
           return APR_ENOMEM;
       (*sa)->hostname = apr_pstrdup(p, hostname);
   
  -#if defined(HAVE_GETADDRINFO) && APR_HAVE_IPV6
  +#if defined(HAVE_GETADDRINFO)
       if (hostname != NULL) {
           struct addrinfo hints, *ai;
           apr_sockaddr_t *cursa;
  
  
  

Mime
View raw message