libcli/dns: make 'clidns' private library out of DNS code in WAF build
[sfrench/samba-autobuild/.git] / lib / addns / dnsutils.c
index 526179bee3a667471f0fe807aa9e4016e1dddf6a..5a63c61f149cb1bd3ef27189f53dc1a47d936f6e 100644 (file)
 #include "dns.h"
 #include <ctype.h>
 
+#ifdef HAVE_SYS_UUID_H
+#include <sys/uuid.h>
+#endif
+
 static DNS_ERROR LabelList( TALLOC_CTX *mem_ctx,
                            const char *name,
                            struct dns_domain_label **presult )
@@ -53,7 +57,7 @@ static DNS_ERROR LabelList( TALLOC_CTX *mem_ctx,
                return ERROR_DNS_INVALID_NAME;
        }
 
-       if (!(result = TALLOC_ZERO_P(mem_ctx, struct dns_domain_label))) {
+       if (!(result = talloc_zero(mem_ctx, struct dns_domain_label))) {
                return ERROR_DNS_NO_MEMORY;
        }