Explorar o código

fixup! Extract time functionality into lib/wallclock and lib/time

Nick Mathewson %!s(int64=6) %!d(string=hai) anos
pai
achega
326c473b79
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/lib/time/tvdiff.c

+ 4 - 0
src/lib/time/tvdiff.c

@@ -8,6 +8,10 @@
 #include "lib/cc/compat_compiler.h"
 #include "lib/log/torlog.h"
 
+#ifdef _WIN32
+#include <winsock2.h>
+#endif
+
 #define TOR_USEC_PER_SEC 1000000
 
 /** Return the difference between start->tv_sec and end->tv_sec.