Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 11224 invoked by uid 500); 5 Jun 2002 18:38:53 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 11213 invoked by uid 500); 5 Jun 2002 18:38:53 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 5 Jun 2002 18:38:53 -0000 Message-ID: <20020605183853.76817.qmail@icarus.apache.org> From: gregames@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/modules/experimental mod_mem_cache.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N gregames 2002/06/05 11:38:53 Modified: modules/experimental mod_mem_cache.c Log: fix a compile failure on platforms where apr_atomic_t is a structure. Revision Changes Path 1.66 +4 -0 httpd-2.0/modules/experimental/mod_mem_cache.c Index: mod_mem_cache.c =================================================================== RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_mem_cache.c,v retrieving revision 1.65 retrieving revision 1.66 diff -u -r1.65 -r1.66 --- mod_mem_cache.c 5 Jun 2002 16:31:37 -0000 1.65 +++ mod_mem_cache.c 5 Jun 2002 18:38:52 -0000 1.66 @@ -378,7 +378,11 @@ } /* 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;