diff --git a/bin/named/main.c b/bin/named/main.c index cfdc941e05..c8ea183269 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -18,6 +18,10 @@ #include #include +#ifdef HAVE_DNSTAP +#include +#endif + #include #include #include diff --git a/bin/named/server.c b/bin/named/server.c index c2afd5523a..4659815ffb 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -20,6 +20,10 @@ #include #include +#ifdef HAVE_DNSTAP +#include +#endif + #include #include #include diff --git a/lib/bind9/check.c b/lib/bind9/check.c index e789aaadd1..67f2f96642 100644 --- a/lib/bind9/check.c +++ b/lib/bind9/check.c @@ -15,6 +15,10 @@ #include #include +#ifdef HAVE_DNSTAP +#include +#endif + #include #include #include diff --git a/lib/dns/dnstap.c b/lib/dns/dnstap.c index 44fb25e73c..2688b30a33 100644 --- a/lib/dns/dnstap.c +++ b/lib/dns/dnstap.c @@ -47,12 +47,11 @@ #error DNSTAP not configured. #endif /* HAVE_DNSTAP */ +#include #include #include #include -#include - #include #include #include diff --git a/lib/dns/include/dns/dnstap.h b/lib/dns/include/dns/dnstap.h index 9a13525bf3..14e042c3c6 100644 --- a/lib/dns/include/dns/dnstap.h +++ b/lib/dns/include/dns/dnstap.h @@ -26,13 +26,7 @@ #include #include -#ifdef HAVE_DNSTAP -#include - -#include -#else /* ifdef HAVE_DNSTAP */ struct fstrm_iothr_options; -#endif /* HAVE_DNSTAP */ #include #include diff --git a/lib/dns/tests/dnstap_test.c b/lib/dns/tests/dnstap_test.c index b41cd14fd4..5c46eda56d 100644 --- a/lib/dns/tests/dnstap_test.c +++ b/lib/dns/tests/dnstap_test.c @@ -37,6 +37,8 @@ #ifdef HAVE_DNSTAP +#include + #include #define TAPFILE "testdata/dnstap/dnstap.file"