diff --git a/src/array.h b/src/array.h index 7720c685..27f27a4c 100644 --- a/src/array.h +++ b/src/array.h @@ -2,7 +2,9 @@ #define ARRAY_H #include +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifdef HAVE_PCRE_H # include #endif diff --git a/src/base.h b/src/base.h index 5161b1cc..28ccaafb 100644 --- a/src/base.h +++ b/src/base.h @@ -5,7 +5,9 @@ #include #include +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include #ifdef HAVE_STDINT_H diff --git a/src/configparser.y b/src/configparser.y index 413465a2..4ca4fa0d 100644 --- a/src/configparser.y +++ b/src/configparser.y @@ -6,7 +6,9 @@ #include #include #include +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include "configfile.h" #include "buffer.h" #include "array.h" diff --git a/src/fdevent.h b/src/fdevent.h index 5692d640..b0357001 100644 --- a/src/fdevent.h +++ b/src/fdevent.h @@ -1,7 +1,9 @@ #ifndef _FDEVENT_H_ #define _FDEVENT_H_ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include "settings.h" #include "bitset.h" diff --git a/src/http_auth.c b/src/http_auth.c index c61bc6a0..7b128221 100644 --- a/src/http_auth.c +++ b/src/http_auth.c @@ -1,4 +1,6 @@ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifdef HAVE_CRYPT_H # include diff --git a/src/http_auth_digest.c b/src/http_auth_digest.c index a1dd2d3d..6da57bf0 100644 --- a/src/http_auth_digest.c +++ b/src/http_auth_digest.c @@ -1,7 +1,6 @@ #include #include "http_auth_digest.h" -#include "config.h" #include "buffer.h" #ifndef USE_OPENSSL diff --git a/src/http_auth_digest.h b/src/http_auth_digest.h index 2d4e363f..3f11d703 100644 --- a/src/http_auth_digest.h +++ b/src/http_auth_digest.h @@ -1,7 +1,9 @@ #ifndef _DIGCALC_H_ #define _DIGCALC_H_ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #define HASHLEN 16 typedef unsigned char HASH[HASHLEN]; diff --git a/src/keyvalue.h b/src/keyvalue.h index c6e8a5fa..7c78037c 100644 --- a/src/keyvalue.h +++ b/src/keyvalue.h @@ -1,7 +1,9 @@ #ifndef _KEY_VALUE_H_ #define _KEY_VALUE_H_ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifdef HAVE_PCRE_H # include diff --git a/src/log.c b/src/log.c index 11f7701b..293c86ba 100644 --- a/src/log.c +++ b/src/log.c @@ -12,7 +12,9 @@ #include #include +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifdef HAVE_SYSLOG_H #include diff --git a/src/md5.c b/src/md5.c index 5696b71a..edd1e828 100644 --- a/src/md5.c +++ b/src/md5.c @@ -23,7 +23,9 @@ These notices must be retained in any copies of any part of this documentation and/or software. */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifndef USE_OPENSSL #include diff --git a/src/mod_access.c b/src/mod_access.c index ed299425..aa8d16f5 100644 --- a/src/mod_access.c +++ b/src/mod_access.c @@ -8,8 +8,6 @@ #include "plugin.h" -#include "config.h" - typedef struct { array *access_deny; } plugin_config; diff --git a/src/mod_alias.c b/src/mod_alias.c index 22ee8312..23570e47 100644 --- a/src/mod_alias.c +++ b/src/mod_alias.c @@ -9,9 +9,6 @@ #include "plugin.h" -#include "config.h" - - /* plugin config for all request/connections */ typedef struct { array *alias; diff --git a/src/mod_compress.c b/src/mod_compress.c index b9b2961c..67e1a443 100644 --- a/src/mod_compress.c +++ b/src/mod_compress.c @@ -20,8 +20,6 @@ #include "crc32.h" #include "etag.h" -#include "config.h" - #if defined HAVE_ZLIB_H && defined HAVE_LIBZ # define USE_ZLIB # include diff --git a/src/mod_dirlisting.c b/src/mod_dirlisting.c index 50d22e4a..feeb3717 100644 --- a/src/mod_dirlisting.c +++ b/src/mod_dirlisting.c @@ -14,7 +14,6 @@ #include "plugin.h" -#include "config.h" #include "response.h" #include "stat_cache.h" #include "stream.h" diff --git a/src/mod_expire.c b/src/mod_expire.c index 8cce5a68..4fd4942c 100644 --- a/src/mod_expire.c +++ b/src/mod_expire.c @@ -11,8 +11,6 @@ #include "plugin.h" #include "stat_cache.h" -#include "config.h" - /** * this is a expire module for a lighttpd * diff --git a/src/mod_indexfile.c b/src/mod_indexfile.c index b5332edf..09baa87d 100644 --- a/src/mod_indexfile.c +++ b/src/mod_indexfile.c @@ -12,8 +12,6 @@ #include "stat_cache.h" -#include "config.h" - /* plugin config for all request/connections */ typedef struct { diff --git a/src/mod_mysql_vhost.c b/src/mod_mysql_vhost.c index 36f9c461..b0e21d40 100644 --- a/src/mod_mysql_vhost.c +++ b/src/mod_mysql_vhost.c @@ -5,7 +5,6 @@ #include #include "plugin.h" -#include "config.h" #include "log.h" #include "stat_cache.h" diff --git a/src/mod_setenv.c b/src/mod_setenv.c index f2b3c9ed..3b6d17ea 100644 --- a/src/mod_setenv.c +++ b/src/mod_setenv.c @@ -7,8 +7,6 @@ #include "plugin.h" -#include "config.h" - #include "response.h" /* plugin config for all request/connections */ diff --git a/src/mod_trigger_b4_dl.c b/src/mod_trigger_b4_dl.c index a340d349..8281ec06 100644 --- a/src/mod_trigger_b4_dl.c +++ b/src/mod_trigger_b4_dl.c @@ -2,8 +2,6 @@ #include #include - - #include "base.h" #include "log.h" #include "buffer.h" @@ -12,8 +10,6 @@ #include "response.h" #include "inet_ntop_cache.h" -#include "config.h" - #if defined(HAVE_GDBM_H) #include #endif diff --git a/src/mod_userdir.c b/src/mod_userdir.c index 986fb2fe..5a3135aa 100644 --- a/src/mod_userdir.c +++ b/src/mod_userdir.c @@ -11,8 +11,6 @@ #include "plugin.h" -#include "config.h" - #ifdef HAVE_PWD_H #include #endif diff --git a/src/network_backends.h b/src/network_backends.h index 8238c72b..c97238a1 100644 --- a/src/network_backends.h +++ b/src/network_backends.h @@ -1,7 +1,9 @@ #ifndef _NETWORK_BACKENDS_H_ #define _NETWORK_BACKENDS_H_ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include diff --git a/src/plugin.c b/src/plugin.c index d38100af..2803f91f 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -5,7 +5,9 @@ #include "plugin.h" #include "log.h" +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #ifdef HAVE_VALGRIND_VALGRIND_H #include diff --git a/src/stream.c b/src/stream.c index fb6d0b7f..ecaadc1e 100644 --- a/src/stream.c +++ b/src/stream.c @@ -5,7 +5,9 @@ #include #include "stream.h" +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include "sys-mmap.h"