diff options
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index d7f8e45cb..21cb010b3 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -808,7 +808,10 @@ void tor_gettimeofday(struct timeval *timeval) { exit(1); } #elif defined(HAVE_FTIME) - ftime(timeval); + struct timeb tb; + ftime(&tb); + timeval->tv_sec = tb.time; + timeval->tv_usec = tb.millitm * 1000; #else #error "No way to get time." #endif |