[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Apply a patch from Gisle Vanem to make tor-gencert build under MSVC



commit 66dbbc29600992375c8fb2d18a90831e305106b0
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon May 7 11:31:08 2012 -0400

    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.)
---
 src/tools/tor-gencert.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c
index b5c96e5..2d92e1e 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>

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits