aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-05-07 11:31:08 -0400
committerNick Mathewson <nickm@torproject.org>2012-05-07 11:31:08 -0400
commit66dbbc29600992375c8fb2d18a90831e305106b0 (patch)
treeaa3b9cac72a4572cf015ba0e8068aa10df612f37 /src/tools
parent3f48c7575e7aacc7199722b992d9098a536d05af (diff)
downloadtor-66dbbc29600992375c8fb2d18a90831e305106b0.tar
tor-66dbbc29600992375c8fb2d18a90831e305106b0.tar.gz
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.)
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/tor-gencert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c
index b5c96e556..2d92e1ee8 100644
--- a/src/tools/tor-gencert.c
+++ b/src/tools/tor-gencert.c
@@ -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>