summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-07-20 12:36:13 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-07-20 12:36:13 +0000
commit98646f1688c76726a5d0aee32420b55016726e78 (patch)
tree708b15f7f53dc0b365ab5237f3f38916f3456e01 /user
parenta622fb9e9c9533184d5cc64fb416684ebb5d208e (diff)
downloadlibapr-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')
-rw-r--r--user/unix/groupinfo.c3
-rw-r--r--user/unix/userinfo.c3
2 files changed, 6 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)
{
diff --git a/user/unix/userinfo.c b/user/unix/userinfo.c
index aa062f442..5aae6e8ee 100644
--- a/user/unix/userinfo.c
+++ b/user/unix/userinfo.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
static apr_status_t getpwnam_safe(const char *username,
struct passwd **pw)