FreeBSD doesn't use this piece of code, but shouldn't it be a pointer...
Index: user/unix/homedir.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/user/unix/homedir.c,v
retrieving revision 1.1
diff -u -r1.1 homedir.c
--- user/unix/homedir.c 2000/11/13 03:18:18 1.1
+++ user/unix/homedir.c 2000/11/16 13:32:00
@@ -67,7 +67,7 @@
{
struct passwd *pw;
#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS)
- struct passwd pwd;
+ struct passwd *pwd;
char pwbuf[512];
#endif