diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-07-20 21:23:50 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-07-20 21:23:50 +0000 |
commit | 06c11a61ce3eb3143d99c071d0e05b7fd1bdad45 (patch) | |
tree | 32cd79aec250789d3b282251e6bb2b93dac5e619 /src/common/util.h | |
parent | 2a339b7627bad567c54a7e274462f8abf66efdf8 (diff) | |
download | tor-06c11a61ce3eb3143d99c071d0e05b7fd1bdad45.tar tor-06c11a61ce3eb3143d99c071d0e05b7fd1bdad45.tar.gz |
When faking gettimeofday with ftime, do it right.
svn:r2068
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/util.h b/src/common/util.h index 51a544005..0cc08e9a1 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -30,9 +30,10 @@ #ifdef HAVE_FTIME #define USING_FAKE_TIMEVAL #include <sys/timeb.h> -#define timeval timeb -#define tv_sec time -#define tv_usec millitm +struct timeval { + time_t tv_sec; + unsigned int tv_usec; +}; #endif #endif |