summaryrefslogtreecommitdiff
path: root/include/arch/unix
diff options
context:
space:
mode:
authoraaron <aaron@13f79535-47bb-0310-9956-ffa450edef68>2002-02-18 02:20:07 +0000
committeraaron <aaron@13f79535-47bb-0310-9956-ffa450edef68>2002-02-18 02:20:07 +0000
commitb023c6e199c14bfabfd949ca383c17aef58a3045 (patch)
tree49221678e5b5f871f831b11b195422924f72ec3d /include/arch/unix
parente2b037f970ce2ebc0d0d632b8a79d1738f1ae3db (diff)
downloadlibapr-b023c6e199c14bfabfd949ca383c17aef58a3045.tar.gz
Make apr_global_mutex_t work on systems w/o APR_HAS_THREADS.
If you don't have threads, you don't need to use cross-thread mutual exclusion, so this becomes essentially apr_proc_mutex_t. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63007 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch/unix')
-rw-r--r--include/arch/unix/global_mutex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/arch/unix/global_mutex.h b/include/arch/unix/global_mutex.h
index e1a79bd5d..dfafcb1fd 100644
--- a/include/arch/unix/global_mutex.h
+++ b/include/arch/unix/global_mutex.h
@@ -66,7 +66,9 @@
struct apr_global_mutex_t {
apr_pool_t *pool;
apr_proc_mutex_t *proc_mutex;
+#if APR_HAS_THREADS
apr_thread_mutex_t *thread_mutex;
+#endif /* APR_HAS_THREADS */
};
#endif /* GLOBAL_MUTEX_H */