]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli: Add required #includes to libcli/dns/dns.h
authorVolker Lendecke <vl@samba.org>
Sun, 29 Nov 2020 17:16:30 +0000 (18:16 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 11 Dec 2020 18:29:32 +0000 (18:29 +0000)
Also, make it safe against being included twice

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/dns/dns.h

index 01994ca91b37733fd4f55815c2c4aa5e98386438..34a6cf5aa9487deb1da502fe21b402fb0bff7408 100644 (file)
 
 /* 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