diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-30 05:13:45 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-30 05:13:45 +0100 |
commit | 35c8edcf73056e20b0c055acb2f286cc37093ce3 (patch) | |
tree | 32e76a5ce259b2bfd1ecb6946f59e70d72ab4c95 /src | |
parent | 7c664ad0b2280cfb5ee1ba923f362fceee4c89ca (diff) |
speed up build by only including regex.h where needed
Diffstat (limited to 'src')
-rw-r--r-- | src/common.h | 1 | ||||
-rw-r--r-- | src/conf.c | 1 | ||||
-rw-r--r-- | src/filter.c | 1 | ||||
-rw-r--r-- | src/html-error.c | 1 |
4 files changed, 3 insertions, 1 deletions
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 <arpa/inet.h> # include <grp.h> # include <pwd.h> -# include <regex.h> /* rest - some oddball headers */ #ifdef HAVE_VALUES_H @@ -23,6 +23,7 @@ * add new directives to. Who knows if I'm right though. */ +#include <regex.h> #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 <regex.h> #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 <regex.h> #include "main.h" #include "common.h" |