summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-30 05:13:45 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-30 05:13:45 +0100
commit35c8edcf73056e20b0c055acb2f286cc37093ce3 (patch)
tree32e76a5ce259b2bfd1ecb6946f59e70d72ab4c95
parent7c664ad0b2280cfb5ee1ba923f362fceee4c89ca (diff)
speed up build by only including regex.h where needed
-rw-r--r--src/common.h1
-rw-r--r--src/conf.c1
-rw-r--r--src/filter.c1
-rw-r--r--src/html-error.c1
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
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 <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"