From: Greg Ames Date: Wed, 5 Jun 2002 18:38:52 +0000 (+0000) Subject: fix a compile failure on platforms where apr_atomic_t is a structure. X-Git-Tag: 2.0.37~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=576ef141eea9d7ebcffb0024a1722bd18f4b1ecc;p=apache fix a compile failure on platforms where apr_atomic_t is a structure. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95529 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_mem_cache.c b/modules/experimental/mod_mem_cache.c index de9b655c84..f29c076bca 100644 --- a/modules/experimental/mod_mem_cache.c +++ b/modules/experimental/mod_mem_cache.c @@ -378,7 +378,11 @@ static int create_entity(cache_handle_t *h, request_rec *r, } /* Finish initing the cache object */ +#ifdef USE_ATOMICS + apr_atomic_set(&obj->refcount, 1); +#else obj->refcount = 1; +#endif obj->complete = 0; obj->cleanup = 0; obj->vobj = mobj;