]> granicus.if.org Git - apache/commitdiff
fix Win32 compile failure in r883540, reported by Gregg Smith
authorJeff Trawick <trawick@apache.org>
Tue, 24 Nov 2009 19:28:34 +0000 (19:28 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 24 Nov 2009 19:28:34 +0000 (19:28 +0000)
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

server/util_mutex.c

index cb2e18bcf4571952acb489c36fbe32571a7af91b..4944c8110354397116c7bb6c412e807230fc9a5c 100644 (file)
@@ -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);
 }