diff options
author | Ben Laurie <ben@apache.org> | 2000-12-31 14:19:09 +0000 |
---|---|---|
committer | Ben Laurie <ben@apache.org> | 2000-12-31 14:19:09 +0000 |
commit | 6802f679d519f64aeb0d7c156a0cb7857ef45441 (patch) | |
tree | 939b53d9b4efe838d9e4b7db1cdbe6f107645904 /user | |
parent | d6ae25450e43affbe574d4612af5df4e1de2757c (diff) | |
download | apr-6802f679d519f64aeb0d7c156a0cb7857ef45441.tar.gz |
Fix a warning.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60995 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'user')
-rw-r--r-- | user/unix/homedir.c | 2 | ||||
-rw-r--r-- | user/unix/userinfo.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/user/unix/homedir.c b/user/unix/homedir.c index 56d10fa7f..c49e7b187 100644 --- a/user/unix/homedir.c +++ b/user/unix/homedir.c @@ -66,7 +66,7 @@ apr_status_t apr_get_home_directory(char **dirname, const char *userid, apr_pool_t *p) { struct passwd *pw; -#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) +#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETPWNAM_R) struct passwd pwd; char pwbuf[512]; #endif diff --git a/user/unix/userinfo.c b/user/unix/userinfo.c index 56d10fa7f..c49e7b187 100644 --- a/user/unix/userinfo.c +++ b/user/unix/userinfo.c @@ -66,7 +66,7 @@ apr_status_t apr_get_home_directory(char **dirname, const char *userid, apr_pool_t *p) { struct passwd *pw; -#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) +#if APR_HAS_THREADS && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETPWNAM_R) struct passwd pwd; char pwbuf[512]; #endif |