]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Stop including dnstap headers from <dns/dnstap.h>
authorOndřej Surý <ondrej@isc.org>
Thu, 11 Feb 2021 13:25:58 +0000 (14:25 +0100)
committerMark Andrews <marka@isc.org>
Tue, 16 Feb 2021 01:04:46 +0000 (01:04 +0000)
The <fstrm.h> and <protobuf-c/protobuf-c.h> headers are only directly
included where used and we stopped exposing those headers from libdns
headers.

bin/named/main.c
bin/named/server.c
lib/bind9/check.c
lib/dns/dnstap.c
lib/dns/include/dns/dnstap.h
lib/dns/tests/dnstap_test.c

index cfdc941e05597a357163607264fa1cc07258ba2d..c8ea183269e91008fdd42682f1da8e4be31ce848 100644 (file)
 #include <string.h>
 #include <uv.h>
 
+#ifdef HAVE_DNSTAP
+#include <protobuf-c/protobuf-c.h>
+#endif
+
 #include <isc/app.h>
 #include <isc/attributes.h>
 #include <isc/backtrace.h>
index c2afd5523a0baeedff1fe71bacda0be586f84e00..4659815ffb799d497c041f0adb8e572f4bd9acbc 100644 (file)
 #include <sys/types.h>
 #include <unistd.h>
 
+#ifdef HAVE_DNSTAP
+#include <fstrm.h>
+#endif
+
 #include <isc/aes.h>
 #include <isc/app.h>
 #include <isc/attributes.h>
index e789aaadd1ca5814cf042f3f4d46260d30287d03..67f2f96642fd5b5ddbab3e2588834ca653312dcb 100644 (file)
 #include <stdbool.h>
 #include <stdlib.h>
 
+#ifdef HAVE_DNSTAP
+#include <fstrm.h>
+#endif
+
 #include <isc/aes.h>
 #include <isc/base64.h>
 #include <isc/buffer.h>
index 44fb25e73ce6091d9eda77ff8d3cff2618cd9db2..2688b30a3381392f8846c30b8bfd202edef7ab44 100644 (file)
 #error DNSTAP not configured.
 #endif /* HAVE_DNSTAP */
 
+#include <fstrm.h>
 #include <inttypes.h>
 #include <stdbool.h>
 #include <stdlib.h>
 
-#include <protobuf-c/protobuf-c.h>
-
 #include <isc/buffer.h>
 #include <isc/file.h>
 #include <isc/log.h>
index 9a13525bf3191368efc351bdb61c6f2db443eb92..14e042c3c61a3cac002875b605090685d655e829 100644 (file)
 #include <inttypes.h>
 #include <stdbool.h>
 
-#ifdef HAVE_DNSTAP
-#include <fstrm.h>
-
-#include <protobuf-c/protobuf-c.h>
-#else  /* ifdef HAVE_DNSTAP */
 struct fstrm_iothr_options;
-#endif /* HAVE_DNSTAP */
 
 #include <isc/log.h>
 #include <isc/refcount.h>
index b41cd14fd45d8988ba5c0db10b09b7cc0c32ee8b..5c46eda56d96e6d55ce8d85154d0ff70979dd175 100644 (file)
@@ -37,6 +37,8 @@
 
 #ifdef HAVE_DNSTAP
 
+#include <fstrm.h>
+
 #include <protobuf-c/protobuf-c.h>
 
 #define TAPFILE "testdata/dnstap/dnstap.file"