From: Wouter Wijngaards Date: Tue, 24 Feb 2009 15:38:23 +0000 (+0000) Subject: fixup warnings on vista/mingw. X-Git-Tag: release-1.3.0~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2261b63f199788aac673882f5a9ecc4c1f9b97f;p=thirdparty%2Funbound.git fixup warnings on vista/mingw. git-svn-id: file:///svn/unbound/trunk@1494 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 32cc0d30b..8ed037814 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/util/log.c b/util/log.c index b4d2c71d0..25e98fc51 100644 --- a/util/log.c +++ b/util/log.c @@ -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