Skip to content

Commit 8686a3f

Browse files
committed
enable DEFAULT_REL_RUNTIMEDIR on NetWare and Windows
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
1 parent c38066d commit 8686a3f

9 files changed

Lines changed: 66 additions & 25 deletions

File tree

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Changes with Apache 2.3.12
44

5+
*) Enable DEFAULT_REL_RUNTIMEDIR on Windows and NetWare. [various]
6+
57
*) Correct C++ incompatibility with http_log.h. [Stefan Fritsch, Jeff
68
Trawick]
79

include/ap_config.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@
232232
#include "os.h"
233233
#if (!defined(WIN32) && !defined(NETWARE)) || defined(__MINGW32__)
234234
#include "ap_config_auto.h"
235-
#include "ap_config_layout.h"
236235
#endif
236+
#include "ap_config_layout.h"
237+
237238
#if defined(NETWARE)
238239
#define AP_NONBLOCK_WHEN_MULTI_LISTEN 1
239240
#endif

modules/cache/mod_socache_dbm.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,7 @@ struct ap_socache_instance_t {
5353
*/
5454
#define DBM_FILE_MODE ( APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD )
5555

56-
/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
57-
#ifndef DEFAULT_REL_RUNTIMEDIR
58-
#define DEFAULT_DBM_PREFIX "logs/socache-dbm-"
59-
#else
6056
#define DEFAULT_DBM_PREFIX DEFAULT_REL_RUNTIMEDIR "/socache-dbm-"
61-
#endif
6257

6358
/* ### this should use apr_dbm_usednames. */
6459
#if !defined(DBM_FILE_SUFFIX_DIR) && !defined(DBM_FILE_SUFFIX_PAG)

modules/cache/mod_socache_shmcb.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@
3232

3333
#define SHMCB_MAX_SIZE (64 * 1024 * 1024)
3434

35-
/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
36-
#ifndef DEFAULT_REL_RUNTIMEDIR
37-
#define DEFAULT_SHMCB_PREFIX "logs/socache-shmcb-"
38-
#else
3935
#define DEFAULT_SHMCB_PREFIX DEFAULT_REL_RUNTIMEDIR "/socache-shmcb-"
40-
#endif
4136

4237
#define DEFAULT_SHMCB_SUFFIX ".cache"
4338

os/netware/netware_config_layout.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* Licensed to the Apache Software Foundation (ASF) under one or more
2+
* contributor license agreements. See the NOTICE file distributed with
3+
* this work for additional information regarding copyright ownership.
4+
* The ASF licenses this file to You under the Apache License, Version 2.0
5+
* (the "License"); you may not use this file except in compliance with
6+
* the License. You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* @file netware/netware_config_layout.h
19+
* @brief This provides layout definitions for non-autoconf-based NetWare
20+
* builds, and is copied to include/ap_config_layout.h during the build.
21+
*/
22+
23+
#ifndef AP_CONFIG_LAYOUT_H
24+
#define AP_CONFIG_LAYOUT_H
25+
26+
/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
27+
#ifndef DEFAULT_REL_RUNTIMEDIR
28+
#define DEFAULT_REL_RUNTIMEDIR "logs"
29+
#endif
30+
31+
#endif /* AP_CONFIG_LAYOUT_H */

os/win32/win32_config_layout.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/* Licensed to the Apache Software Foundation (ASF) under one or more
2+
* contributor license agreements. See the NOTICE file distributed with
3+
* this work for additional information regarding copyright ownership.
4+
* The ASF licenses this file to You under the Apache License, Version 2.0
5+
* (the "License"); you may not use this file except in compliance with
6+
* the License. You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* @file win32/win32_config_layout.h
19+
* @brief This provides layout definitions for non-autoconf-based Windows
20+
* builds, and is copied to include/ap_config_layout.h during the build.
21+
*/
22+
23+
#ifndef AP_CONFIG_LAYOUT_H
24+
#define AP_CONFIG_LAYOUT_H
25+
26+
/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
27+
#ifndef DEFAULT_REL_RUNTIMEDIR
28+
#define DEFAULT_REL_RUNTIMEDIR "logs"
29+
#endif
30+
31+
#endif /* AP_CONFIG_LAYOUT_H */

server/mpm/netware/mpm_default.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@
6060
#define DEFAULT_MIN_FREE_THREADS 10
6161
#endif
6262

63-
/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
64-
#ifndef DEFAULT_REL_RUNTIMEDIR
65-
#define DEFAULT_REL_RUNTIMEDIR "logs"
66-
#endif
67-
6863
/* Where the main/parent process's pid is logged */
6964
/*#ifndef DEFAULT_PIDLOG
7065
#define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid"

server/mpm/winnt/mpm_default.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@
5555
*/
5656
#define HARD_SERVER_LIMIT 1
5757

58-
/* Check for definition of DEFAULT_REL_RUNTIMEDIR */
59-
#ifndef DEFAULT_REL_RUNTIMEDIR
60-
#define DEFAULT_REL_RUNTIMEDIR "logs"
61-
#endif
62-
6358
/* Where the main/parent process's pid is logged */
6459
#ifndef DEFAULT_PIDLOG
6560
#define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid"

server/util_mutex.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,7 @@ AP_DECLARE_NONSTD(void) ap_mutex_init(apr_pool_t *p)
154154
/* initialize default mutex configuration */
155155
def = apr_pcalloc(p, sizeof *def);
156156
def->mech = APR_LOCK_DEFAULT;
157-
#ifdef DEFAULT_REL_RUNTIMEDIR
158157
def->dir = DEFAULT_REL_RUNTIMEDIR;
159-
#else
160-
def->dir = "logs";
161-
#endif
162158
apr_hash_set(mxcfg_by_type, "default", APR_HASH_KEY_STRING, def);
163159
}
164160

0 commit comments

Comments
 (0)