aboutsummaryrefslogtreecommitdiffstats
path: root/atomic/unix/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'atomic/unix/mutex.c')
-rw-r--r--atomic/unix/mutex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/atomic/unix/mutex.c b/atomic/unix/mutex.c
index fba3be2ba150..45bc5e2d9951 100644
--- a/atomic/unix/mutex.c
+++ b/atomic/unix/mutex.c
@@ -15,6 +15,7 @@
*/
#include "apr_arch_atomic.h"
+#include "apr_thread_mutex.h"
#ifdef USE_ATOMICS_GENERIC
@@ -70,7 +71,7 @@ APR_DECLARE(apr_status_t) apr_atomic_init(apr_pool_t *p)
}
}
- return APR_SUCCESS;
+ return apr__atomic_generic64_init(p);
}
static APR_INLINE apr_thread_mutex_t *mutex_hash(volatile apr_uint32_t *mem)
@@ -88,7 +89,7 @@ static APR_INLINE apr_thread_mutex_t *mutex_hash(volatile apr_uint32_t *mem)
APR_DECLARE(apr_status_t) apr_atomic_init(apr_pool_t *p)
{
- return APR_SUCCESS;
+ return apr__atomic_generic64_init(p);
}
#endif /* APR_HAS_THREADS */