From f25248fe676591c582d514e8c1a574c3f4b8699c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 29 Nov 2020 18:16:30 +0100 Subject: [PATCH] libcli: Add required #includes to libcli/dns/dns.h Also, make it safe against being included twice Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- libcli/dns/dns.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libcli/dns/dns.h b/libcli/dns/dns.h index 01994ca91b3..34a6cf5aa94 100644 --- a/libcli/dns/dns.h +++ b/libcli/dns/dns.h @@ -20,6 +20,12 @@ /* DNS query section in replies */ +#ifndef __LIBCLI_DNS_DNS_H__ +#define __LIBCLI_DNS_DNS_H__ + +#include "replace.h" +#include "system/network.h" + struct dns_query { const char *hostname; uint16_t type; @@ -54,3 +60,5 @@ struct dns_rr_ns { const char *hostname; struct sockaddr_storage ss; }; + +#endif