Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ntp make mDNS registration depend on compile ti...



details:   https://anonhg.NetBSD.org/src/rev/086540bcc62a
branches:  trunk
changeset: 757432:086540bcc62a
user:      kardel <kardel%NetBSD.org@localhost>
date:      Sun Aug 29 10:13:07 2010 +0000

description:
make mDNS registration depend on compile time build option MKMDNS

diffstat:

 external/bsd/ntp/bin/ntpd/Makefile |  6 +++++-
 external/bsd/ntp/include/config.h  |  4 ++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 7bfac50e302f -r 086540bcc62a external/bsd/ntp/bin/ntpd/Makefile
--- a/external/bsd/ntp/bin/ntpd/Makefile        Sun Aug 29 07:00:13 2010 +0000
+++ b/external/bsd/ntp/bin/ntpd/Makefile        Sun Aug 29 10:13:07 2010 +0000
@@ -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
diff -r 7bfac50e302f -r 086540bcc62a external/bsd/ntp/include/config.h
--- a/external/bsd/ntp/include/config.h Sun Aug 29 07:00:13 2010 +0000
+++ b/external/bsd/ntp/include/config.h Sun Aug 29 10:13:07 2010 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index