]> granicus.if.org Git - apache/commitdiff
ditto hack from mpm_default.h
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 22 Dec 2008 21:34:59 +0000 (21:34 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 22 Dec 2008 21:34:59 +0000 (21:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728787 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_socache_dbm.c
modules/cache/mod_socache_shmcb.c

index e7ffbbbfe2a3d00009cc7eb026b19876d08bd87c..28864008402d168d2c8d89cff334d8945c48b900 100644 (file)
@@ -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)
index 549e305e92ed3dd7b956a28ec4a749040b783ae7..ceacc4e5c9b1acedf44a08f894d8506108b03785 100644 (file)
 
 #define SHMCB_MAX_SIZE (64 * 1024 * 1024)
 
+/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
+#ifndef DEFAULT_REL_RUNTIMEDIR
+#define DEFAULT_SHMCB_PREFIX "logs/socache-shmcb-"
+#else
+#define DEFAULT_SHMCB_PREFIX DEFAULT_REL_RUNTIMEDIR "/socache-shmcb-"
+#endif
+
+#define DEFAULT_SHMCB_SUFFIX ".cache"
+
+
 /* 
  * This shared memory based SSL session cache implementation was
  * originally written by Geoff Thorpe <geoff geoffthorpe.net> for C2Net
@@ -307,9 +317,6 @@ static const char *socache_shmcb_create(ap_socache_instance_t **context,
     return NULL;
 }
 
-#define DEFAULT_SHMCB_PREFIX DEFAULT_REL_RUNTIMEDIR "/socache-shmcb-"
-#define DEFAULT_SHMCB_SUFFIX ".cache"
-
 static apr_status_t socache_shmcb_init(ap_socache_instance_t *ctx,
                                        const char *namespace, 
                                        const struct ap_socache_hints *hints,