aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-29 12:59:43 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-29 12:59:43 -0400
commit9d5b815dcabc7344f4e0613246d061064f6d1bd1 (patch)
treef3f211712334c695fb1256c2b7d5720924b1a98e /src
parent6ac64e16ed6958d1a5960c560254217478b7ad87 (diff)
downloadtor-9d5b815dcabc7344f4e0613246d061064f6d1bd1.tar.gz
tor-9d5b815dcabc7344f4e0613246d061064f6d1bd1.zip
Add a missing include to timers, to make windows happier
Diffstat (limited to 'src')
-rw-r--r--src/common/timers.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/timers.c b/src/common/timers.c
index 57b7d7265d..ff92a2e447 100644
--- a/src/common/timers.c
+++ b/src/common/timers.c
@@ -39,6 +39,11 @@
#include "lib/malloc/util_malloc.h"
#include "lib/time/compat_time.h"
+#ifdef _WIN32
+// For struct timeval.
+#include <winsock2.h>
+#endif
+
struct timeout_cb {
timer_cb_fn_t cb;
void *arg;