From 35c8edcf73056e20b0c055acb2f286cc37093ce3 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 30 Sep 2020 05:13:45 +0100 Subject: speed up build by only including regex.h where needed --- src/common.h | 1 - src/conf.c | 1 + src/filter.c | 1 + src/html-error.c | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common.h b/src/common.h index 47a1ed1..563ee6f 100644 --- a/src/common.h +++ b/src/common.h @@ -68,7 +68,6 @@ # include # include # include -# include /* rest - some oddball headers */ #ifdef HAVE_VALUES_H diff --git a/src/conf.c b/src/conf.c index e7e0f32..91124bb 100644 --- a/src/conf.c +++ b/src/conf.c @@ -23,6 +23,7 @@ * add new directives to. Who knows if I'm right though. */ +#include #include "common.h" #include "conf.h" diff --git a/src/filter.c b/src/filter.c index 8a0b085..d70cb59 100644 --- a/src/filter.c +++ b/src/filter.c @@ -24,6 +24,7 @@ #include "main.h" +#include #include "filter.h" #include "heap.h" #include "log.h" diff --git a/src/html-error.c b/src/html-error.c index 7c71f74..78c3ef0 100644 --- a/src/html-error.c +++ b/src/html-error.c @@ -20,6 +20,7 @@ * HTML error pages with variable substitution. */ +#include #include "main.h" #include "common.h" -- cgit v1.2.3