diff options
Diffstat (limited to 'compat/gettod.c')
-rw-r--r-- | compat/gettod.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compat/gettod.c b/compat/gettod.c index 059c36a..28e1432 100644 --- a/compat/gettod.c +++ b/compat/gettod.c @@ -10,18 +10,18 @@ * of this file, and for a DISCLAIMER OF ALL WARRANTIES. */ -#include "tcl.h" #include "tclPort.h" #include <sys/timeb.h> #undef timezone int -gettimeofday(tp, tz) -struct timeval *tp; -struct timezone *tz; +gettimeofday( + struct timeval *tp, + struct timezone *tz) { struct timeb t; + ftime(&t); tp->tv_sec = t.time; tp->tv_usec = t. millitm * 1000; |