summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dnsregister.c7
1 files 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 <includes.h>
-#include <dns_sd.h>
/* 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 <dns_sd.h>
+
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;