summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2009-11-24 20:28:34 +0100
committerJeff Trawick <trawick@apache.org>2009-11-24 20:28:34 +0100
commit7e6399e951c4234d392addbed36b45a6a3f63c7c (patch)
tree6c14f85ccac1a266d189f1c5e48621a32cb04aa4 /server
parentfix Win32 compile failure in r883540, reported by Gregg Smith (diff)
downloadapache2-7e6399e951c4234d392addbed36b45a6a3f63c7c.tar.xz
apache2-7e6399e951c4234d392addbed36b45a6a3f63c7c.zip
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
Diffstat (limited to 'server')
-rw-r--r--server/util_mutex.c4
1 files changed, 4 insertions, 0 deletions
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);
}