From e19cf64356580b965c257f0b3b6ef9ca5b03ed62 Mon Sep 17 00:00:00 2001 From: Ira Cooper Date: Tue, 6 Mar 2012 19:22:46 -0500 Subject: addns: Fix the Solaris/Illumos build. uuid_t is not defined without including sys/uuid.h, configure+waf checks added. Signed-off-by: Jeremy Allison --- lib/addns/dnsutils.c | 4 ++++ lib/addns/wscript | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 lib/addns/wscript (limited to 'lib/addns') diff --git a/lib/addns/dnsutils.c b/lib/addns/dnsutils.c index 43305a9873..5a63c61f14 100644 --- a/lib/addns/dnsutils.c +++ b/lib/addns/dnsutils.c @@ -25,6 +25,10 @@ #include "dns.h" #include +#ifdef HAVE_SYS_UUID_H +#include +#endif + static DNS_ERROR LabelList( TALLOC_CTX *mem_ctx, const char *name, struct dns_domain_label **presult ) diff --git a/lib/addns/wscript b/lib/addns/wscript new file mode 100644 index 0000000000..99e9358a3d --- /dev/null +++ b/lib/addns/wscript @@ -0,0 +1,6 @@ +#!/usr/bin/env python + +import Options + +def configure(conf): + conf.CHECK_HEADERS('sys/uuid.h') -- cgit