[master] win32 portability fix

This commit is contained in:
Evan Hunt
2013-11-18 15:46:24 -08:00
parent 43bbab6d0b
commit 2b57986603

View File

@@ -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);