From: Nick Mathewson Date: Mon, 7 May 2012 15:31:08 +0000 (-0400) Subject: Apply a patch from Gisle Vanem to make tor-gencert build under MSVC X-Git-Tag: tor-0.2.3.16-alpha~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66dbbc29600992375c8fb2d18a90831e305106b0;p=thirdparty%2Ftor.git Apply a patch from Gisle Vanem to make tor-gencert build under MSVC (Note: It makes sense to use tor-gencert on Windows for testing purposes only. If you are a directory authority operator, and you are contemplating running tor-gencert on a Windows box in an actual production environment, you are probably making a mistake.) --- diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c index b5c96e556a..2d92e1ee8b 100644 --- a/src/tools/tor-gencert.c +++ b/src/tools/tor-gencert.c @@ -9,7 +9,9 @@ #include #include #include +#ifdef HAVE_UNISTD_H #include +#endif #include #include