httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/network_io/unix sockets.c
Date Sun, 19 Nov 2000 03:02:39 GMT
trawick     00/11/18 19:02:39

  Modified:    src/lib/apr/network_io/unix sockets.c
  Log:
  Restore some AF_INET logic which shouldn't be dependent on IPv6 support.
  Submitted by:	Greg Stein
  
  Revision  Changes    Path
  1.62      +3 -2      apache-2.0/src/lib/apr/network_io/unix/sockets.c
  
  Index: sockets.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/network_io/unix/sockets.c,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- sockets.c	2000/11/19 02:59:16	1.61
  +++ sockets.c	2000/11/19 03:02:37	1.62
  @@ -251,15 +251,16 @@
               sock->local_port_unknown = 1;
           }
           /* XXX IPv6 to be handled better later... */
  +        if (
   #if APR_HAVE_IPV6
  -        if (sock->local_addr->sa.sin.sin_family == APR_INET6 ||
  +            sock->local_addr->sa.sin.sin_family == APR_INET6 ||
  +#endif
               sock->local_addr->sa.sin.sin_addr.s_addr == 0) {
               /* not bound to specific local interface; connect() had to assign
                * one for the socket
                */
               sock->local_interface_unknown = 1;
           }
  -#endif
   #ifndef HAVE_POLL
           sock->connected=1;
   #endif
  
  
  

Mime
View raw message