]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2583. [port] netbsd: provide a control to not add the compile
authorMark Andrews <marka@isc.org>
Fri, 3 Apr 2009 20:17:59 +0000 (20:17 +0000)
committerMark Andrews <marka@isc.org>
Fri, 3 Apr 2009 20:17:59 +0000 (20:17 +0000)
                        date to the version string, -DNO_VERSION_DATE.

CHANGES
bin/named/main.c

diff --git a/CHANGES b/CHANGES
index e11e7b4b6602590c0b5354770bb22e4c72acd9e3..fe6810b9a8d565ce026d5e7f7a489578d7ce6496 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2583.  [port]          netbsd: provide a control to not add the compile
+                       date to the version string, -DNO_VERSION_DATE.
+
 2582.  [bug]           Don't emit warning log message when we attempt to
                        remove non-existant journal. [RT #19516]
 
index b7061d146c942081f0efe8211bb79e7ecc7cb1e3..2dedf832442925b3ac023b276c57d50b4928f6e6 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: main.c,v 1.136.18.23 2009/01/19 23:46:14 tbox Exp $ */
+/* $Id: main.c,v 1.136.18.24 2009/04/03 20:17:59 marka Exp $ */
 
 /*! \file */
 
@@ -851,10 +851,10 @@ main(int argc, char *argv[]) {
         * strings named.core | grep "named version:"
         */
        strlcat(version,
-#ifdef __DATE__
-               "named version: BIND " VERSION " (" __DATE__ ")",
-#else
+#if defined(NO_VERSION_DATE) || !defined(__DATE__)
                "named version: BIND " VERSION,
+#else
+               "named version: BIND " VERSION " (" __DATE__ ")",
 #endif
                sizeof(version));
        result = isc_file_progname(*argv, program_name, sizeof(program_name));