From: Greg Ames Date: Mon, 10 Jun 2002 18:27:13 +0000 (+0000) Subject: fix compile breakage on platforms with default atomics X-Git-Tag: 2.0.37~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1824c46f727287db99417ca5e731ba2e03bea9b8;p=apache fix compile breakage on platforms with default atomics git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95594 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_mem_cache.c b/modules/experimental/mod_mem_cache.c index 82f78f4385..5b6edfa75d 100644 --- a/modules/experimental/mod_mem_cache.c +++ b/modules/experimental/mod_mem_cache.c @@ -992,6 +992,10 @@ static int mem_cache_post_config(apr_pool_t *p, apr_pool_t *plog, apr_thread_mutex_create(&sconf->lock, APR_THREAD_MUTEX_DEFAULT, p); } +#ifdef USE_ATOMICS + apr_atomic_init(p); +#endif + sconf->cache_cache = cache_init(sconf->max_object_cnt, sconf->max_cache_size, memcache_get_priority,