[v9_6] win32 portability fix

(cherry picked from commit 2b57986603)
This commit is contained in:
Evan Hunt
2013-11-18 15:48:03 -08:00
parent 39ce3f5e5c
commit b10bcfabb8
+4 -4
View File
@@ -517,14 +517,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);