Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 73530 invoked by uid 500); 30 Dec 2000 17:50:19 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 73519 invoked from network); 30 Dec 2000 17:50:19 -0000 Date: Sat, 30 Dec 2000 09:53:34 -0800 (PST) From: rbb@covalent.net X-Sender: rbb@koj To: new-httpd@apache.org Subject: Re: Deja vu In-Reply-To: <3A4DCB8E.F4DC49E7@algroup.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: h29.sny.collab.net 1.6.2 0/1000/N > OK, I think I understand. So, what you are suggesting is that I do this: > > Index: srclib/apr/configure.in > =================================================================== > RCS file: /home/cvs/apr/configure.in,v > retrieving revision 1.196 > diff -u -r1.196 configure.in > --- srclib/apr/configure.in 2000/12/28 23:14:06 1.196 > +++ srclib/apr/configure.in 2000/12/30 11:44:58 > @@ -600,6 +600,9 @@ > > AC_CHECK_FUNCS(poll) > > +dnl #----------------------------- Checking for missing POSIX thread > functions > +AC_CHECK_FUNCS(getpwnam_r) > + > dnl #----------------------------- Checking for Processes > echo $ac_n "${nl}Checking for Processes...${nl}" > > Index: srclib/apr/user/unix/homedir.c > =================================================================== > RCS file: /home/cvs/apr/user/unix/homedir.c,v > retrieving revision 1.1 > diff -u -r1.1 homedir.c > --- srclib/apr/user/unix/homedir.c 2000/11/13 03:18:18 1.1 > +++ srclib/apr/user/unix/homedir.c 2000/12/30 11:45:14 > @@ -71,7 +71,7 @@ > char pwbuf[512]; > #endif > > -#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) > +#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && > defined(HAVE_GETPWNAM_R) > if (!getpwnam_r(userid, &pwd, pwbuf, sizeof(pwbuf), &pw)) { > #else > if ((pw = getpwnam(userid)) != NULL) { > > Right? Got it in one. :-) I would hope that we could output a warning when we try to use threads with non-reentrant functions, but this will at least work. Ryan _______________________________________________________________________________ Ryan Bloom rbb@apache.org 406 29th St. San Francisco, CA 94131 -------------------------------------------------------------------------------