From 40889dccdfec1148481a542c3afc518c11b0642c Mon Sep 17 00:00:00 2001 From: James Peach Date: Thu, 13 Dec 2007 22:12:21 -0800 Subject: Move dns_sd.h include to fix the build. (This used to be commit cf221a94bd8794add508a2b9305b8c0d40c3346a) --- source3/smbd/dnsregister.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source3/smbd/dnsregister.c b/source3/smbd/dnsregister.c index fcd97b5dab..44bd39f64e 100644 --- a/source3/smbd/dnsregister.c +++ b/source3/smbd/dnsregister.c @@ -18,7 +18,6 @@ */ #include -#include /* Uses DNS service discovery (libdns_sd) to * register the SMB service. SMB service is registered @@ -31,13 +30,15 @@ #define DNS_REG_RETRY_INTERVAL (5*60) /* in seconds */ +#ifdef WITH_DNSSD_SUPPORT + +#include + struct dns_reg_state { DNSServiceRef srv_ref; struct timed_event *retry_handler; }; -#ifdef WITH_DNSSD_SUPPORT - void dns_register_close(struct dns_reg_state **dns_state_ptr) { int mdnsd_conn_fd; -- cgit