From 7cf4f507510e4ae7bbdfb63871c9190cebc28f36 Mon Sep 17 00:00:00 2001 From: Greg Stein Date: Thu, 1 Mar 2001 00:55:03 +0000 Subject: [PATCH] Don't directly include ap_config_auto.h directly. It isn't available on Windows platforms. Including ap_config.h will pick it up, or it will grab the appropriate Windows header/defines. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88402 13f79535-47bb-0310-9956-ffa450edef68 --- include/mpm_common.h | 4 +--- modules/aaa/mod_auth_digest.c | 24 ++++++++++++------------ support/suexec.c | 5 ++--- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/include/mpm_common.h b/include/mpm_common.h index feeebbaff1..4a769574c0 100644 --- a/include/mpm_common.h +++ b/include/mpm_common.h @@ -70,9 +70,7 @@ #ifndef APACHE_MPM_COMMON_H #define APACHE_MPM_COMMON_H -#ifndef WIN32 -#include "ap_config_auto.h" -#endif +#include "ap_config.h" #ifdef HAVE_NETINET_TCP_H #include /* for TCP_NODELAY */ diff --git a/modules/aaa/mod_auth_digest.c b/modules/aaa/mod_auth_digest.c index f5b3009856..e532b96826 100644 --- a/modules/aaa/mod_auth_digest.c +++ b/modules/aaa/mod_auth_digest.c @@ -96,17 +96,6 @@ * - expired nonces give amaya fits. */ -#ifndef WIN32 -#include "ap_config_auto.h" -#endif -#include "httpd.h" -#include "http_config.h" -#include "http_core.h" -#include "http_request.h" -#include "http_log.h" -#include "http_protocol.h" -#include "util_uri.h" -#include "util_md5.h" #include "apr_sha1.h" #include "apr_base64.h" #include "apr_lib.h" @@ -114,9 +103,20 @@ #include "apr_errno.h" #include "apr_lock.h" #include "apr_strings.h" + #define APR_WANT_STRFUNC #include "apr_want.h" +#include "ap_config.h" +#include "httpd.h" +#include "http_config.h" +#include "http_core.h" +#include "http_request.h" +#include "http_log.h" +#include "http_protocol.h" +#include "util_uri.h" +#include "util_md5.h" + #if APR_HAS_SHARED_MEMORY #include "apr_shmem.h" #else @@ -151,7 +151,7 @@ apr_status_t apr_shm_open(apr_shmem_t *c) { apr_status_t apr_shm_avail(apr_shmem_t *c, apr_size_t *avail) { return APR_ENOTIMPL; } -#endif +#endif /* APR_HAS_SHARED_MEMORY */ /* struct to hold the configuration info */ diff --git a/support/suexec.c b/support/suexec.c index c15a266d0c..234668dcbb 100644 --- a/support/suexec.c +++ b/support/suexec.c @@ -81,13 +81,12 @@ #include #include "suexec.h" -#include "ap_config_auto.h" -#if HAVE_PWD_H +#ifdef HAVE_PWD_H #include #endif -#if HAVE_GRP_H +#ifdef HAVE_GRP_H #include #endif -- 2.50.0