httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject Re: Deja vu
Date Sat, 30 Dec 2000 17:53:34 GMT

> 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
-------------------------------------------------------------------------------


Mime
View raw message