diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-07-20 12:36:13 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-07-20 12:36:13 +0000 |
commit | 98646f1688c76726a5d0aee32420b55016726e78 (patch) | |
tree | 708b15f7f53dc0b365ab5237f3f38916f3456e01 /user/unix/groupinfo.c | |
parent | a622fb9e9c9533184d5cc64fb416684ebb5d208e (diff) | |
download | libapr-98646f1688c76726a5d0aee32420b55016726e78.tar.gz |
include <unistd.h> to get _POSIX_THREAD_SAFE_FUNCTIONS defined
(at least glibc 2.1)
I didn't check to see if this was broken in a9, so I mentioned
it in CHANGES just to be safe (or lazy)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61971 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'user/unix/groupinfo.c')
-rw-r--r-- | user/unix/groupinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/user/unix/groupinfo.c b/user/unix/groupinfo.c index eac3aa843..34f2e4345 100644 --- a/user/unix/groupinfo.c +++ b/user/unix/groupinfo.c @@ -62,6 +62,9 @@ #if APR_HAVE_SYS_TYPES_H #include <sys/types.h> #endif +#if APR_HAVE_UNISTD_H +#include <unistd.h> /* for _POSIX_THREAD_SAFE_FUNCTIONS */ +#endif APR_DECLARE(apr_status_t) apr_get_groupname(char **groupname, apr_gid_t groupid, apr_pool_t *p) { |