Forráskód Böngészése

Add a missing include to timers, to make windows happier

Nick Mathewson 5 éve
szülő
commit
9d5b815dca
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      src/common/timers.c

+ 5 - 0
src/common/timers.c

@@ -39,6 +39,11 @@
 #include "lib/malloc/util_malloc.h"
 #include "lib/malloc/util_malloc.h"
 #include "lib/time/compat_time.h"
 #include "lib/time/compat_time.h"
 
 
+#ifdef _WIN32
+// For struct timeval.
+#include <winsock2.h>
+#endif
+
 struct timeout_cb {
 struct timeout_cb {
   timer_cb_fn_t cb;
   timer_cb_fn_t cb;
   void *arg;
   void *arg;