From: Volker Lendecke Date: Sun, 29 Nov 2020 17:16:30 +0000 (+0100) Subject: libcli: Add required #includes to libcli/dns/dns.h X-Git-Tag: samba-4.14.0rc1~449 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f25248fe676591c582d514e8c1a574c3f4b8699c;p=thirdparty%2Fsamba.git 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 --- 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