aboutsummaryrefslogtreecommitdiff
path: root/src/lib/encoding
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-09 12:54:40 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-09 12:54:40 -0400
commit19f2057d4999b4dfe8b06feafb92063e803d02c2 (patch)
tree093e5bf4921c026483fb8eacef7778210842ebe3 /src/lib/encoding
parenteb856a3e51e14690ede533dd84bef48ae818eefe (diff)
downloadtor-19f2057d4999b4dfe8b06feafb92063e803d02c2.tar.gz
tor-19f2057d4999b4dfe8b06feafb92063e803d02c2.zip
Fix some lingering windows compilation issues from Jenkins.
These were caused by the recent refactoring.
Diffstat (limited to 'src/lib/encoding')
-rw-r--r--src/lib/encoding/time_fmt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/encoding/time_fmt.c b/src/lib/encoding/time_fmt.c
index ea9c8e9fd1..c2ff34a91a 100644
--- a/src/lib/encoding/time_fmt.c
+++ b/src/lib/encoding/time_fmt.c
@@ -26,6 +26,11 @@
#include <string.h>
#include <time.h>
+#ifdef _WIN32
+/* For struct timeval */
+#include <winsock2.h>
+#endif
+
/** As localtime_r, but defined for platforms that don't have it:
*
* Convert *<b>timep</b> to a struct tm in local time, and store the value in