apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject cvs commit: apr/build apr_network.m4
Date Fri, 27 Apr 2001 04:06:52 GMT
dreid       01/04/26 21:06:52

  Modified:    build    apr_network.m4
  Log:
  This changes the TCP_NODELAY test to use the loopback address on BeOS
  as otherwise the test hangs and eventually fails, giving the impression
  that configure has hung.  Not sure if this should be applied to other
  platforms as well so the #ifdef's.
  
  Revision  Changes    Path
  1.6       +6 -0      apr/build/apr_network.m4
  
  Index: apr_network.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_network.m4,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- apr_network.m4	2001/04/05 18:56:06	1.5
  +++ apr_network.m4	2001/04/27 04:06:51	1.6
  @@ -186,6 +186,9 @@
       }
       memset(&sa, 0, sizeof sa);
       sa.sin_family = AF_INET;
  +#ifdef BEOS
  +    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
  +#endif
       /* leave port 0 to get ephemeral */
       rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
       if (rc < 0) {
  @@ -213,6 +216,9 @@
       memset(&sa, 0, sizeof sa);
       sa.sin_family = AF_INET;
       sa.sin_port   = listen_port;
  +#ifdef BEOS
  +    sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
  +#endif
       /* leave sin_addr all zeros to use loopback */
       rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
       if (rc < 0) {
  
  
  

Mime
View raw message