]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Apply a patch from Gisle Vanem to make tor-gencert build under MSVC
authorNick Mathewson <nickm@torproject.org>
Mon, 7 May 2012 15:31:08 +0000 (11:31 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 7 May 2012 15:31:08 +0000 (11:31 -0400)
(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.)

src/tools/tor-gencert.c

index b5c96e556a5e4f1ada925651e80651b693ede01b..2d92e1ee8b5e9cb065e1409845b3826c5b8eb560 100644 (file)
@@ -9,7 +9,9 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 
 #include <openssl/evp.h>
 #include <openssl/pem.h>