[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Add a missing include to timers, to make windows happier
commit 9d5b815dcabc7344f4e0613246d061064f6d1bd1
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Fri Jun 29 12:59:43 2018 -0400
Add a missing include to timers, to make windows happier
---
src/common/timers.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/common/timers.c b/src/common/timers.c
index 57b7d7265..ff92a2e44 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;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits