From: Evan Hunt Date: Mon, 18 Nov 2013 23:46:24 +0000 (-0800) Subject: [master] win32 portability fix X-Git-Tag: v9.10.0a1~4 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2b579866035a093b692bbb5d06399e70063ed1cd;p=thirdparty%2Fbind9.git [master] win32 portability fix --- diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index cc6c006c6c9..392fa7cdae3 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -541,14 +541,14 @@ fatal(const char *format, ...) { void debug(const char *format, ...) { va_list args; + isc_time_t t; if (debugging) { fflush(stdout); if (debugtiming) { - struct timeval tv; - (void)gettimeofday(&tv, NULL); - fprintf(stderr, "%ld.%06ld: ", (long)tv.tv_sec, - (long)tv.tv_usec); + TIME_NOW(&t); + fprintf(stderr, "%d.%06d: ", + t.seconds, t.nanoseconds / 1000); } va_start(args, format); vfprintf(stderr, format, args);