]> granicus.if.org Git - apache/commitdiff
enable DEFAULT_REL_RUNTIMEDIR on NetWare and Windows
authorJeff Trawick <trawick@apache.org>
Sun, 27 Mar 2011 23:51:18 +0000 (23:51 +0000)
committerJeff Trawick <trawick@apache.org>
Sun, 27 Mar 2011 23:51:18 +0000 (23:51 +0000)
this commit is missing the Windows and NetWare build
logic to copy the appropriate file to include/ap_config_layout.h

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1086073 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
include/ap_config.h
modules/cache/mod_socache_dbm.c
modules/cache/mod_socache_shmcb.c
os/netware/netware_config_layout.h [new file with mode: 0644]
os/win32/win32_config_layout.h [new file with mode: 0644]
server/mpm/netware/mpm_default.h
server/mpm/winnt/mpm_default.h
server/util_mutex.c

diff --git a/CHANGES b/CHANGES
index 2dd5a032045ac25e23ca14f861b754d8ec8e9ce2..be2eee6e2f2732e2773e346718bf035ee0996cce 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@
 
 Changes with Apache 2.3.12
 
+  *) Enable DEFAULT_REL_RUNTIMEDIR on Windows and NetWare.  [various]
+
   *) Correct C++ incompatibility with http_log.h.  [Stefan Fritsch, Jeff
      Trawick]
 
index 45056372c28fcfdf73bb103056b861fc5bdbf406..3a02bbef11cbc26d8c964fbe8465799bf25f5af3 100644 (file)
 #include "os.h"
 #if (!defined(WIN32) && !defined(NETWARE)) || defined(__MINGW32__)
 #include "ap_config_auto.h"
-#include "ap_config_layout.h"
 #endif
+#include "ap_config_layout.h"
+
 #if defined(NETWARE)
 #define AP_NONBLOCK_WHEN_MULTI_LISTEN 1
 #endif
index fabf7782129fbf15c9d93f13f65b6e6adc95d1f1..2fca723a3a486a5f444ffa112b9602a92dfcc009 100644 (file)
@@ -53,12 +53,7 @@ struct ap_socache_instance_t {
  */
 #define 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(DBM_FILE_SUFFIX_DIR) && !defined(DBM_FILE_SUFFIX_PAG)
index da7e1903b8dee37dc13fcfaa35b3447c54c51c52..ddc6d147d9243957ab32f7632bd6d10640facd54 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"
 
diff --git a/os/netware/netware_config_layout.h b/os/netware/netware_config_layout.h
new file mode 100644 (file)
index 0000000..29d3320
--- /dev/null
@@ -0,0 +1,31 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @file netware/netware_config_layout.h
+ * @brief This provides layout definitions for non-autoconf-based NetWare
+ * builds, and is copied to include/ap_config_layout.h during the build.
+ */
+
+#ifndef AP_CONFIG_LAYOUT_H
+#define AP_CONFIG_LAYOUT_H
+
+/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
+#ifndef DEFAULT_REL_RUNTIMEDIR
+#define DEFAULT_REL_RUNTIMEDIR "logs"
+#endif
+
+#endif /* AP_CONFIG_LAYOUT_H */
diff --git a/os/win32/win32_config_layout.h b/os/win32/win32_config_layout.h
new file mode 100644 (file)
index 0000000..5f770a2
--- /dev/null
@@ -0,0 +1,31 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @file win32/win32_config_layout.h
+ * @brief This provides layout definitions for non-autoconf-based Windows
+ * builds, and is copied to include/ap_config_layout.h during the build.
+ */
+
+#ifndef AP_CONFIG_LAYOUT_H
+#define AP_CONFIG_LAYOUT_H
+
+/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
+#ifndef DEFAULT_REL_RUNTIMEDIR
+#define DEFAULT_REL_RUNTIMEDIR "logs"
+#endif
+
+#endif /* AP_CONFIG_LAYOUT_H */
index 0314c4302a19df84683246d79803b41a47f177c4..1859f4d9a06360ec59ea3a28f354140b2af10f60 100644 (file)
 #define DEFAULT_MIN_FREE_THREADS 10
 #endif
 
-/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
-#ifndef DEFAULT_REL_RUNTIMEDIR
-#define DEFAULT_REL_RUNTIMEDIR "logs"
-#endif
-
 /* Where the main/parent process's pid is logged */
 /*#ifndef DEFAULT_PIDLOG
   #define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid"
index 7708b9237be74518a37b27cb47a727df16dd2f22..95143e311aa73b5667a48be5eb3fa5d7f68052eb 100644 (file)
  */
 #define HARD_SERVER_LIMIT 1
 
-/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
-#ifndef DEFAULT_REL_RUNTIMEDIR
-#define DEFAULT_REL_RUNTIMEDIR "logs"
-#endif
-
 /* Where the main/parent process's pid is logged */
 #ifndef DEFAULT_PIDLOG
 #define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid"
index d3f6674af51617a2987a090fe83e1b41f0f6ba67..fec95d47fd425b6fdecaa7d211fdff758d3ba4cb 100644 (file)
@@ -154,11 +154,7 @@ AP_DECLARE_NONSTD(void) ap_mutex_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);
 }