summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-10-19 20:05:14 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-10-19 20:08:31 +0100
commitcc0a7eb9a2846116630c1c2aa445597f2b9b2369 (patch)
tree5c541fe358f4f71b71be2a8e15b8797b790787ce
parente20aa221ff143902758cafca668034e29652c9da (diff)
html-error: move common.h inclusion back to top
this seems to cause an implicit declaration of snprintf() thanks to feature test macro hell.
-rw-r--r--src/html-error.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/html-error.c b/src/html-error.c
index 78c3ef0..daf44d3 100644
--- a/src/html-error.c
+++ b/src/html-error.c
@@ -20,10 +20,9 @@
* HTML error pages with variable substitution.
*/
-#include <regex.h>
+#include "common.h"
#include "main.h"
-#include "common.h"
#include "buffer.h"
#include "conns.h"
#include "heap.h"
@@ -32,6 +31,8 @@
#include "utils.h"
#include "conf.h"
+#include <regex.h>
+
/*
* Add an error number -> filename mapping to the errorpages list.
*/