1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

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
This commit is contained in:
William A. Rowe Jr
2005-01-05 21:35:51 +00:00
parent 38810d4197
commit 8aea7cff22
6 changed files with 32 additions and 39 deletions

View File

@@ -16,17 +16,22 @@
#ifndef UTIL_LDAP_H #ifndef UTIL_LDAP_H
#define UTIL_LDAP_H #define UTIL_LDAP_H
#include <apr_ldap.h> /* 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 */ /* this whole thing disappears if LDAP is not enabled */
#if APR_HAS_LDAP #if APR_HAS_LDAP
/* APR header files */
#include <apr_thread_mutex.h>
#include <apr_thread_rwlock.h>
#include <apr_tables.h>
#include <apr_time.h>
/* Apache header files */ /* Apache header files */
#include "ap_config.h" #include "ap_config.h"
#include "httpd.h" #include "httpd.h"
@@ -36,13 +41,8 @@
#include "http_protocol.h" #include "http_protocol.h"
#include "http_request.h" #include "http_request.h"
#if APR_HAS_SHARED_MEMORY /* Create a set of LDAP_DECLARE macros with appropriate export
#include "apr_rmm.h" * and import tags for the platform
#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
*/ */
#if !defined(WIN32) #if !defined(WIN32)
#define LDAP_DECLARE(type) type #define LDAP_DECLARE(type) type

View File

@@ -13,19 +13,6 @@
* limitations under the License. * 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 <unistd.h>
#endif
#include <ctype.h>
#include "ap_provider.h" #include "ap_provider.h"
#include "httpd.h" #include "httpd.h"
#include "http_config.h" #include "http_config.h"
@@ -37,8 +24,19 @@
#include "mod_auth.h" #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 <unistd.h>
#endif
#include <ctype.h>
#if !APR_HAS_LDAP #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 #endif
typedef struct { typedef struct {

View File

@@ -21,10 +21,6 @@
* Copyright 1999-2001 Dave Carrigan * Copyright 1999-2001 Dave Carrigan
*/ */
#include <apr_ldap.h>
#include <apr_strings.h>
#include "ap_config.h"
#include "httpd.h" #include "httpd.h"
#include "http_config.h" #include "http_config.h"
#include "http_core.h" #include "http_core.h"
@@ -34,6 +30,8 @@
#include "util_ldap.h" #include "util_ldap.h"
#include "util_ldap_cache.h" #include "util_ldap_cache.h"
#include <apr_strings.h>
#if APR_HAVE_UNISTD_H #if APR_HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif

View File

@@ -21,10 +21,10 @@
* Copyright 1999-2001 Dave Carrigan * Copyright 1999-2001 Dave Carrigan
*/ */
#include <apr_ldap.h> #include "httpd.h"
#include <apr_strings.h>
#include "util_ldap.h" #include "util_ldap.h"
#include "util_ldap_cache.h" #include "util_ldap_cache.h"
#include <apr_strings.h>
#if APR_HAS_LDAP #if APR_HAS_LDAP

View File

@@ -28,10 +28,7 @@
* LDAP Cache Manager * LDAP Cache Manager
*/ */
#if APR_HAS_SHARED_MEMORY #include "util_ldap.h"
#include <apr_shm.h>
#include <apr_rmm.h> /* EDD */
#endif
typedef struct util_cache_node_t { typedef struct util_cache_node_t {
void *payload; /* Pointer to the payload */ void *payload; /* Pointer to the payload */

View File

@@ -21,7 +21,7 @@
* Copyright 1999-2001 Dave Carrigan * Copyright 1999-2001 Dave Carrigan
*/ */
#include <apr_ldap.h> #include "httpd.h"
#include "util_ldap.h" #include "util_ldap.h"
#include "util_ldap_cache.h" #include "util_ldap_cache.h"
#include <apr_strings.h> #include <apr_strings.h>