summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-12-13 22:12:21 -0800
committerJames Peach <jpeach@samba.org>2007-12-13 22:12:21 -0800
commit40889dccdfec1148481a542c3afc518c11b0642c (patch)
tree4f8e4f516b835db2b4252cc3ff90508c694dd75b /source3
parent7b457645fb40d7195d75f8e38883b140abcb1955 (diff)
downloadsamba-40889dccdfec1148481a542c3afc518c11b0642c.tar.gz
samba-40889dccdfec1148481a542c3afc518c11b0642c.tar.bz2
samba-40889dccdfec1148481a542c3afc518c11b0642c.zip
Move dns_sd.h include to fix the build.
(This used to be commit cf221a94bd8794add508a2b9305b8c0d40c3346a)
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;