diff options
author | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-02-18 02:20:07 +0000 |
---|---|---|
committer | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-02-18 02:20:07 +0000 |
commit | b023c6e199c14bfabfd949ca383c17aef58a3045 (patch) | |
tree | 49221678e5b5f871f831b11b195422924f72ec3d /include/arch/unix | |
parent | e2b037f970ce2ebc0d0d632b8a79d1738f1ae3db (diff) | |
download | libapr-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.h | 2 |
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 */ |