Module Name:    src
Committed By:   kardel
Date:           Sun Aug 29 10:13:07 UTC 2010

Modified Files:
        src/external/bsd/ntp/bin/ntpd: Makefile
        src/external/bsd/ntp/include: config.h

Log Message:
make mDNS registration depend on compile time build option MKMDNS


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/ntp/bin/ntpd/Makefile
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/ntp/include/config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/ntp/bin/ntpd/Makefile
diff -u src/external/bsd/ntp/bin/ntpd/Makefile:1.3 src/external/bsd/ntp/bin/ntpd/Makefile:1.4
--- src/external/bsd/ntp/bin/ntpd/Makefile:1.3	Sat Aug 28 20:51:08 2010
+++ src/external/bsd/ntp/bin/ntpd/Makefile	Sun Aug 29 10:13:07 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2010/08/28 20:51:08 kardel Exp $
+#	$NetBSD: Makefile,v 1.4 2010/08/29 10:13:07 kardel Exp $
 
 NOGCCERROR=yes
 
@@ -83,6 +83,10 @@
 
 CPPFLAGS+=-I${IDIST}/include -I${IDIST}/libopts
 
+.if ("${MKMDNS}" != "no")
+CPPFLAGS+=-DUSE_MDNS
+.endif
+
 .PATH: ${DIST}
 
 ntpd.8: ntpd.1

Index: src/external/bsd/ntp/include/config.h
diff -u src/external/bsd/ntp/include/config.h:1.1 src/external/bsd/ntp/include/config.h:1.2
--- src/external/bsd/ntp/include/config.h:1.1	Sun Dec 13 17:13:48 2009
+++ src/external/bsd/ntp/include/config.h	Sun Aug 29 10:13:07 2010
@@ -333,7 +333,11 @@
 #define HAVE_DLFCN_H 1
 
 /* Use Rendezvous/DNS-SD registration */
+#ifdef USE_MDNS
 #define HAVE_DNSREGISTRATION 1
+#else
+#undef HAVE_DNSREGISTRATION
+#endif
 
 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
 /* #undef HAVE_DOPRNT */

Reply via email to