From 27a6babb71b138dad3c24516db0c5f2be81019b7 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 21 Jan 2010 06:31:47 +0000 Subject: [PATCH] Design error; main.c is not part of the libhttpd, you can't forward referrence storage like this. Move the variable allocation into the ap_ library module. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@901557 13f79535-47bb-0310-9956-ffa450edef68 --- server/core.c | 3 +++ server/main.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/core.c b/server/core.c index 239c7840f9..5f041a266c 100644 --- a/server/core.c +++ b/server/core.c @@ -94,6 +94,9 @@ AP_DECLARE_DATA ap_filter_rec_t *ap_core_output_filter_handle; AP_DECLARE_DATA ap_filter_rec_t *ap_content_length_filter_handle; AP_DECLARE_DATA ap_filter_rec_t *ap_core_input_filter_handle; +/* Provide ap_document_root_check storage and default value = true */ +AP_DECLARE_DATA int ap_document_root_check = 1; + /* magic pointer for ErrorDocument xxx "default" */ static char errordocument_default; diff --git a/server/main.c b/server/main.c index 72c4158011..d80ec62ade 100644 --- a/server/main.c +++ b/server/main.c @@ -440,9 +440,6 @@ static void usage(process_rec *process) destroy_and_exit_process(process, 1); } -/* Set ap_document_root_check to default value: true */ -AP_DECLARE_DATA int ap_document_root_check = 1; - int main(int argc, const char * const argv[]) { char c; -- 2.40.0