Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 64893 invoked by uid 500); 24 Jul 2001 22:21:19 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 64882 invoked from network); 24 Jul 2001 22:21:19 -0000 Date: 24 Jul 2001 22:18:34 -0000 Message-ID: <20010724221834.73922.qmail@icarus.apache.org> From: dreid@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/network_io/unix sa_common.c X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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);