apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject cvs commit: apr/network_io/unix sa_common.c
Date Tue, 24 Jul 2001 22:18:34 GMT
dreid       01/07/24 15:18:34

  Modified:    network_io/unix sa_common.c
  Log:
  This is a hack but it get beos working again.  This will probably have
  to stay until be fix the implementation as everything else I've tried
  didn't work.
  
  Revision  Changes    Path
  1.39      +3 -3      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.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- sa_common.c	2001/07/24 15:56:43	1.38
  +++ sa_common.c	2001/07/24 22:18:34	1.39
  @@ -393,7 +393,7 @@
           apr_sockaddr_t *cursa;
           int curaddr;
   #if APR_HAS_THREADS && !defined(GETHOSTBYNAME_IS_THREAD_SAFE) && \
  -    defined(HAVE_GETHOSTBYNAME_R)
  +    defined(HAVE_GETHOSTBYNAME_R) && !defined(BEOS)
           char tmp[GETHOSTBYNAME_BUFLEN];
           int hosterror;
           struct hostent hs;
  @@ -414,7 +414,7 @@
           else {
   #endif
   #if APR_HAS_THREADS && !defined(GETHOSTBYNAME_IS_THREAD_SAFE) && \
  -    defined(HAVE_GETHOSTBYNAME_R)
  +    defined(HAVE_GETHOSTBYNAME_R) && !defined(BEOS)
           hp = gethostbyname_r(hostname, &hs, tmp, GETHOSTBYNAME_BUFLEN - 1, 
                                &hosterror);
   #else
  @@ -425,7 +425,7 @@
   #ifdef WIN32
               apr_get_netos_error();
   #elif APR_HAS_THREADS && !defined(GETHOSTBYNAME_IS_THREAD_SAFE) && \
  -    defined(HAVE_GETHOSTBYNAME_R)
  +    defined(HAVE_GETHOSTBYNAME_R) && !defined(BEOS)
               /* If you see ERANGE, that means GETHOSBYNAME_BUFLEN needs to be
                * bumped. */
               return (hosterror + APR_OS_START_SYSERR);
  
  
  

Mime
View raw message