From: Jeff Trawick Date: Tue, 24 Nov 2009 19:28:34 +0000 (+0000) Subject: fix Win32 compile failure in r883540, reported by Gregg Smith X-Git-Tag: 2.3.4~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e6399e951c4234d392addbed36b45a6a3f63c7c;p=apache fix Win32 compile failure in r883540, reported by Gregg Smith DEFAULT_REL_RUNTIMEDIR defined only in mpm_default.h for NetWare and dsp-based Win32 builds mpm_default.h not in normal include path on Unix thus, hardcode "logs" directory when DEFAULT_REL_RUNTIMEDIR isn't defined (file-based mutexes aren't configurable for those platforms anyway) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883828 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_mutex.c b/server/util_mutex.c index cb2e18bcf4..4944c81103 100644 --- a/server/util_mutex.c +++ b/server/util_mutex.c @@ -156,7 +156,11 @@ static void mx_hash_init(apr_pool_t *p) /* initialize default mutex configuration */ def = apr_pcalloc(p, sizeof *def); def->mech = APR_LOCK_DEFAULT; +#ifdef DEFAULT_REL_RUNTIMEDIR def->dir = DEFAULT_REL_RUNTIMEDIR; +#else + def->dir = "logs"; +#endif apr_hash_set(mxcfg_by_type, "default", APR_HASH_KEY_STRING, def); }