From: William A. Rowe Jr Date: Wed, 5 Jan 2005 21:35:51 +0000 (+0000) Subject: Correct the order of includes to follow httpd conventions, and get X-Git-Tag: 2.1.3~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8aea7cff22c3d18cdce62943045c156faed35daa;p=thirdparty%2Fapache%2Fhttpd.git Correct the order of includes to follow httpd conventions, and get Win32 compiling again. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@124279 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/util_ldap.h b/include/util_ldap.h index fd6f44f3ea5..f036d3b0a85 100644 --- a/include/util_ldap.h +++ b/include/util_ldap.h @@ -16,17 +16,22 @@ #ifndef UTIL_LDAP_H #define UTIL_LDAP_H -#include +/* APR header files */ +#include "apr.h" +#include "apr_thread_mutex.h" +#include "apr_thread_rwlock.h" +#include "apr_tables.h" +#include "apr_time.h" +#include "apr_ldap.h" + +#if APR_HAS_SHARED_MEMORY +#include "apr_rmm.h" +#include "apr_shm.h" +#endif /* this whole thing disappears if LDAP is not enabled */ #if APR_HAS_LDAP -/* APR header files */ -#include -#include -#include -#include - /* Apache header files */ #include "ap_config.h" #include "httpd.h" @@ -36,13 +41,8 @@ #include "http_protocol.h" #include "http_request.h" -#if APR_HAS_SHARED_MEMORY -#include "apr_rmm.h" -#include "apr_shm.h" -#endif - -/* Create a set of LDAP_DECLARE(type), LDLDAP_DECLARE(type) and - * LDAP_DECLARE_DATA with appropriate export and import tags for the platform +/* Create a set of LDAP_DECLARE macros with appropriate export + * and import tags for the platform */ #if !defined(WIN32) #define LDAP_DECLARE(type) type diff --git a/modules/aaa/mod_authnz_ldap.c b/modules/aaa/mod_authnz_ldap.c index 20d108e99cf..32642d240ad 100644 --- a/modules/aaa/mod_authnz_ldap.c +++ b/modules/aaa/mod_authnz_ldap.c @@ -13,19 +13,6 @@ * limitations under the License. */ -#include "apr_ldap.h" -#include "apr_strings.h" -#include "apr_xlate.h" -#define APR_WANT_STRFUNC -#include "apr_want.h" - -#include "ap_config.h" -#if APR_HAVE_UNISTD_H -/* for getpid() */ -#include -#endif -#include - #include "ap_provider.h" #include "httpd.h" #include "http_config.h" @@ -37,8 +24,19 @@ #include "mod_auth.h" +#include "apr_strings.h" +#include "apr_xlate.h" +#define APR_WANT_STRFUNC +#include "apr_want.h" + +#if APR_HAVE_UNISTD_H +/* for getpid() */ +#include +#endif +#include + #if !APR_HAS_LDAP -#error mod_auth_ldap requires APR-util to have LDAP support built in. To fix add --with-ldap to ./configure. +#error mod_authnz_ldap requires APR-util to have LDAP support built in. To fix add --with-ldap to ./configure. #endif typedef struct { diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index 0d917321e52..89864f7ca00 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -21,10 +21,6 @@ * Copyright 1999-2001 Dave Carrigan */ -#include -#include - -#include "ap_config.h" #include "httpd.h" #include "http_config.h" #include "http_core.h" @@ -34,6 +30,8 @@ #include "util_ldap.h" #include "util_ldap_cache.h" +#include + #if APR_HAVE_UNISTD_H #include #endif diff --git a/modules/ldap/util_ldap_cache.c b/modules/ldap/util_ldap_cache.c index 6be03b32316..0d2692b6c72 100644 --- a/modules/ldap/util_ldap_cache.c +++ b/modules/ldap/util_ldap_cache.c @@ -21,10 +21,10 @@ * Copyright 1999-2001 Dave Carrigan */ -#include -#include +#include "httpd.h" #include "util_ldap.h" #include "util_ldap_cache.h" +#include #if APR_HAS_LDAP diff --git a/modules/ldap/util_ldap_cache.h b/modules/ldap/util_ldap_cache.h index 4fc9f3463ee..9c089018509 100644 --- a/modules/ldap/util_ldap_cache.h +++ b/modules/ldap/util_ldap_cache.h @@ -28,10 +28,7 @@ * LDAP Cache Manager */ -#if APR_HAS_SHARED_MEMORY -#include -#include /* EDD */ -#endif +#include "util_ldap.h" typedef struct util_cache_node_t { void *payload; /* Pointer to the payload */ diff --git a/modules/ldap/util_ldap_cache_mgr.c b/modules/ldap/util_ldap_cache_mgr.c index ab35ad35da1..69523a8d2fe 100644 --- a/modules/ldap/util_ldap_cache_mgr.c +++ b/modules/ldap/util_ldap_cache_mgr.c @@ -21,7 +21,7 @@ * Copyright 1999-2001 Dave Carrigan */ -#include +#include "httpd.h" #include "util_ldap.h" #include "util_ldap_cache.h" #include