]> 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:18:59 +0000 (20:18 +0000)
committerMark Andrews <marka@isc.org>
Fri, 3 Apr 2009 20:18:59 +0000 (20:18 +0000)
                        date to the version string, -DNO_VERSION_DATE.

CHANGES
bin/named/main.c

diff --git a/CHANGES b/CHANGES
index 3c5562c76b070b4834b8ce25818b1d09340c8f88..9800373b3281067b8d53e2ba56a9e165438a8806 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 0fcca0564a575d7c3a46b06b9846f4869f88ec1d..f97ab45a317c6e24210e7c4e7e7f249d7684ff05 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: main.c,v 1.166.34.2 2009/01/18 23:47:34 tbox Exp $ */
+/* $Id: main.c,v 1.166.34.3 2009/04/03 20:18:59 marka Exp $ */
 
 /*! \file */
 
@@ -879,10 +879,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));