From cc0a7eb9a2846116630c1c2aa445597f2b9b2369 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 19 Oct 2020 20:05:14 +0100 Subject: [PATCH] html-error: move common.h inclusion back to top this seems to cause an implicit declaration of snprintf() thanks to feature test macro hell. --- src/html-error.c | 5 +++-- 1 file 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 +#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 + /* * Add an error number -> filename mapping to the errorpages list. */