]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix some lingering windows compilation issues from Jenkins.
authorNick Mathewson <nickm@torproject.org>
Mon, 9 Jul 2018 16:54:40 +0000 (12:54 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 9 Jul 2018 16:54:40 +0000 (12:54 -0400)
These were caused by the recent refactoring.

src/feature/nodelist/microdesc.c
src/lib/encoding/time_fmt.c
src/test/test_shared_random.c

index 4d6285d6cfa3906f7367124f8b3beda900ca17f9..d9630b4f1d986433cd97533e27601d5a6cfdd9c3 100644 (file)
@@ -723,7 +723,7 @@ microdesc_cache_rebuild(microdesc_cache_t *cache, int force)
       log_warn(LD_BUG, "Discontinuity in position in microdescriptor cache."
                "By my count, I'm at %"PRId64
                ", but I should be at %"PRId64,
-               (off), (off_real));
+               (int64_t)(off), (int64_t)(off_real));
       if (off_real >= 0)
         off = off_real;
     }
index ea9c8e9fd10a6810fbe2d6367c934f807d7861bf..c2ff34a91afa90faa09262cdbadb6f179e841cdc 100644 (file)
 #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
index ccf051606f26faf305572fc1309d34f66cf4ff86..b0a9da0033dadf011353fe621450232da1e98750 100644 (file)
 #include <sys/stat.h>
 #endif
 
+#ifdef _WIN32
+/* For mkdir */
+#include <direct.h>
+#endif
+
 static authority_cert_t *mock_cert;
 
 static authority_cert_t *