You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2009/11/24 20:28:35 UTC

svn commit: r883828 - /httpd/httpd/trunk/server/util_mutex.c

Author: trawick
Date: Tue Nov 24 19:28:34 2009
New Revision: 883828

URL: http://svn.apache.org/viewvc?rev=883828&view=rev
Log:
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)

Modified:
    httpd/httpd/trunk/server/util_mutex.c

Modified: httpd/httpd/trunk/server/util_mutex.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_mutex.c?rev=883828&r1=883827&r2=883828&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_mutex.c (original)
+++ httpd/httpd/trunk/server/util_mutex.c Tue Nov 24 19:28:34 2009
@@ -156,7 +156,11 @@
     /* 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);
 }