summaryrefslogtreecommitdiffstats
path: root/modules/cache/mod_socache_dbm.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2008-12-22 22:34:59 +0100
committerWilliam A. Rowe Jr <wrowe@apache.org>2008-12-22 22:34:59 +0100
commit7266c515bb73ce08df6b6131b46cb794786616ab (patch)
tree62d3233340e908d785a10b95d42f1370f5045589 /modules/cache/mod_socache_dbm.c
parentHack to add basic support for LuaJIT. (diff)
downloadapache2-7266c515bb73ce08df6b6131b46cb794786616ab.tar.xz
apache2-7266c515bb73ce08df6b6131b46cb794786616ab.zip
ditto hack from mpm_default.h
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728787 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cache/mod_socache_dbm.c')
-rw-r--r--modules/cache/mod_socache_dbm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/cache/mod_socache_dbm.c b/modules/cache/mod_socache_dbm.c
index e7ffbbbfe2..2886400840 100644
--- a/modules/cache/mod_socache_dbm.c
+++ b/modules/cache/mod_socache_dbm.c
@@ -53,7 +53,12 @@ struct ap_socache_instance_t {
*/
#define SSL_DBM_FILE_MODE ( APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD )
+/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
+#ifndef DEFAULT_REL_RUNTIMEDIR
+#define DEFAULT_DBM_PREFIX "logs/socache-dbm-"
+#else
#define DEFAULT_DBM_PREFIX DEFAULT_REL_RUNTIMEDIR "/socache-dbm-"
+#endif
/* ### this should use apr_dbm_usednames. */
#if !defined(SSL_DBM_FILE_SUFFIX_DIR) && !defined(SSL_DBM_FILE_SUFFIX_PAG)