aboutsummaryrefslogtreecommitdiff
path: root/src/lib/time
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-28 13:40:21 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-28 13:40:21 -0400
commit0f02d2c0411448668d2dfe11b61e1ea72ee7a3b2 (patch)
treeb02ef89a4bb4e214f486211c51c154f67fc784d1 /src/lib/time
parent7d7af19f1b282554df5117c5c963736d0253a8d5 (diff)
downloadtor-0f02d2c0411448668d2dfe11b61e1ea72ee7a3b2.tar.gz
tor-0f02d2c0411448668d2dfe11b61e1ea72ee7a3b2.zip
Fix windows compilation in compat_time
We need to use lib/fs/winlib.h here so that we can use GetTickCount64. I would love to declare that XP is dead, and everybody has GetTickCount64.
Diffstat (limited to 'src/lib/time')
-rw-r--r--src/lib/time/.may_include3
-rw-r--r--src/lib/time/compat_time.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/time/.may_include b/src/lib/time/.may_include
index a35e7a34e1..2c7e37a836 100644
--- a/src/lib/time/.may_include
+++ b/src/lib/time/.may_include
@@ -6,3 +6,6 @@ lib/intmath/*.h
lib/log/*.h
lib/time/*.h
lib/wallclock/*.h
+
+# For load_windows_system_lib.
+lib/fs/winlib.h \ No newline at end of file
diff --git a/src/lib/time/compat_time.c b/src/lib/time/compat_time.c
index f50ccb5e3d..08f99b70c9 100644
--- a/src/lib/time/compat_time.c
+++ b/src/lib/time/compat_time.c
@@ -16,6 +16,8 @@
#include "lib/log/torlog.h"
#include "lib/log/util_bug.h"
#include "lib/intmath/muldiv.h"
+#include "lib/fs/winlib.h"
+#include "lib/wallclock/timeval.h"
#ifdef _WIN32
#include <winsock2.h>