]> granicus.if.org Git - apache/commitdiff
fix a compile failure on platforms where apr_atomic_t is a structure.
authorGreg Ames <gregames@apache.org>
Wed, 5 Jun 2002 18:38:52 +0000 (18:38 +0000)
committerGreg Ames <gregames@apache.org>
Wed, 5 Jun 2002 18:38:52 +0000 (18:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95529 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_mem_cache.c

index de9b655c84c79ffb03e1c0ff266cfdd6ed3a197a..f29c076bca940063de7d2335552ad061b4edff86 100644 (file)
@@ -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;