summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Derigs <dl6er@dl6er.de>2021-10-07 09:30:31 +0200
committerSimon Kelley <simon@thekelleys.org.uk>2021-10-07 09:28:34 +0100
commit72fac0810cf1ba380fbd2021ea666594e58d25ad (patch)
treef606eaea4c1a472e717bf017661a8911dbfed430
parentc166c07a93d5a95532f1175ede1c6827b94e8f8b (diff)
downloaddnsmasq-72fac0810cf1ba380fbd2021ea666594e58d25ad.tar.gz
dnsmasq.h has to be included first as it sources config.hv2.87test4
Signed-off-by: DL6ER <dl6er@dl6er.de>
-rw-r--r--src/dnsmasq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dnsmasq.c b/src/dnsmasq.c
index d3f2c13..2fe9808 100644
--- a/src/dnsmasq.c
+++ b/src/dnsmasq.c
@@ -17,10 +17,12 @@
/* Declare static char *compiler_opts in config.h */
#define DNSMASQ_COMPILE_OPTS
+/* dnsmasq.h has to be included first as it sources config.h */
+#include "dnsmasq.h"
+
#if defined(HAVE_IDN) || defined(HAVE_LIBIDN2) || defined(LOCALEDIR)
#include <locale.h>
#endif
-#include "dnsmasq.h"
struct daemon *daemon;