Move dns_sd.h include to fix the build.
authorJames Peach <jpeach@samba.org>
Fri, 14 Dec 2007 06:12:21 +0000 (22:12 -0800)
committerJames Peach <jpeach@samba.org>
Fri, 14 Dec 2007 06:12:21 +0000 (22:12 -0800)
(This used to be commit cf221a94bd8794add508a2b9305b8c0d40c3346a)

source3/smbd/dnsregister.c

index fcd97b5dab918468245833836c8314a0a4ca9561..44bd39f64e9353c7b3335a9fefd79b7572fb264d 100644 (file)
@@ -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
 
 #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;