[tor-dev] [Patch] tinytest_demo.c

Gisle Vanem gvanem at yahoo.no
Fri Mar 14 10:31:53 UTC 2014


Since tinytest_demo.c now calls Sleep(), we must include <windows.h>.
Patch:

--- Git-latest/src/ext/tinytest_demo.c 2014-03-13 20:44:56 +0000
+++ src/ext/tinytest_demo.c      2014-03-14 11:21:56 +0000
@@ -36,7 +36,10 @@
 #include <string.h>
 #include <errno.h>
 #include <time.h>
-#ifndef _WIN32
+
+#ifdef _WIN32
+#include <windows.h>
+#else
 #include <unistd.h>
 #endif

--------------

Ref. Nicks commit here:
  https://gitweb.torproject.org/tor.git/commitdiff/1365ff5b9a04a7da2acc2e52df18a61b6cb39fe6

--gv


More information about the tor-dev mailing list