]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a missing include to timers, to make windows happier
authorNick Mathewson <nickm@torproject.org>
Fri, 29 Jun 2018 16:59:43 +0000 (12:59 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 29 Jun 2018 16:59:43 +0000 (12:59 -0400)
src/common/timers.c

index 57b7d7265de84e2da967b0e1ce801b3d96ba2508..ff92a2e4475ee9e931cbe113c3b22f3a1c3e3b38 100644 (file)
 #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;