]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fixup warnings on vista/mingw.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 24 Feb 2009 15:38:23 +0000 (15:38 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 24 Feb 2009 15:38:23 +0000 (15:38 +0000)
git-svn-id: file:///svn/unbound/trunk@1494 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/log.c

index 32cc0d30b4cdd47a3f42551b55249f6f46c64a45..8ed0378143baa7feb6ab2ccec969eea18bfa86f2 100644 (file)
@@ -1,5 +1,6 @@
 24 February 2009: Wouter
        - isc moved their dlv key download location.
+       - fixup warning on vista/mingw.
 
 20 February 2009: Wouter
        - Fixup contrib/update-itar.sh, the exit codes 1 and 0 were swapped.
index b4d2c71d0fc8d2f9f8b125e10694f8a138d8be5e..25e98fc51b9cc606850bf2d65414ab88a4cffd0e 100644 (file)
@@ -151,10 +151,12 @@ log_vmsg(int pri, const char* type,
        const char *format, va_list args)
 {
        char message[MAXSYSLOGMSGLEN];
-       char tmbuf[32];
        unsigned int* tid = (unsigned int*)ub_thread_key_get(logkey);
        time_t now;
+#if defined(HAVE_STRFTIME) && defined(HAVE_LOCALTIME_R) 
+       char tmbuf[32];
        struct tm tm;
+#endif
        (void)pri;
        vsnprintf(message, sizeof(message), format, args);
 #ifdef HAVE_SYSLOG_H