diff --git a/lib/dns/dnstap.c b/lib/dns/dnstap.c index e6c5e14529..a673c44c3a 100644 --- a/lib/dns/dnstap.c +++ b/lib/dns/dnstap.c @@ -71,6 +71,7 @@ #include #include #include +#include #include #include @@ -82,12 +83,12 @@ #define DNSTAP_CONTENT_TYPE "protobuf:dnstap.Dnstap" #define DNSTAP_INITIAL_BUF_SIZE 256 -typedef struct dns_dtmsg { +struct dns_dtmsg { void *buf; size_t len; Dnstap__Dnstap d; Dnstap__Message m; -} dns_dtmsg_t; +}; #define CHECK(x) do { \ result = (x); \