diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-12-07 16:35:23 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-01-02 15:25:55 +0200 |
commit | 926fc93be5b6afab1a604ecd7c79aa6e8ae8a676 (patch) | |
tree | ad9b0bd2298f8035734d777f42b1333fb5cf990d /src/lib/time | |
parent | dd04917851c23f16a11c0d2b0c62ea76c93c4c7d (diff) | |
download | tor-926fc93be5b6afab1a604ecd7c79aa6e8ae8a676.tar.gz tor-926fc93be5b6afab1a604ecd7c79aa6e8ae8a676.zip |
Concentrate all TOR_USEC_PER_SEC definitions in a single header file.
Co-authored-by: Mike Perry <mikeperry-git@torproject.org>
Diffstat (limited to 'src/lib/time')
-rw-r--r-- | src/lib/time/.may_include | 1 | ||||
-rw-r--r-- | src/lib/time/tvdiff.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/time/.may_include b/src/lib/time/.may_include index 40a18805ac..ae01431b60 100644 --- a/src/lib/time/.may_include +++ b/src/lib/time/.may_include @@ -7,6 +7,7 @@ lib/log/*.h lib/subsys/*.h lib/time/*.h lib/wallclock/*.h +lib/defs/time.h # For load_windows_system_lib. lib/fs/winlib.h
\ No newline at end of file diff --git a/src/lib/time/tvdiff.c b/src/lib/time/tvdiff.c index bc8a1166e7..9dfb63c26f 100644 --- a/src/lib/time/tvdiff.c +++ b/src/lib/time/tvdiff.c @@ -11,6 +11,7 @@ #include "lib/time/tvdiff.h" #include "lib/cc/compat_compiler.h" +#include "lib/defs/time.h" #include "lib/log/log.h" #ifdef _WIN32 @@ -20,8 +21,6 @@ #include <sys/time.h> #endif -#define TOR_USEC_PER_SEC 1000000 - /** Return the difference between start->tv_sec and end->tv_sec. * Returns INT64_MAX on overflow and underflow. */ |