[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #1709 [Tor - Tor client]: Fix compilation with mingw and OpenSSL 0.9.8m+
#1709: Fix compilation with mingw and OpenSSL 0.9.8m+
---------------------------------+------------------------------------------
Reporter: mingw-san | Type: defect
Status: new | Priority: normal
Milestone: | Component: Tor - Tor client
Version: Tor: 0.2.2.14-alpha | Keywords: Windows OpenSSL compilation
Parent: |
---------------------------------+------------------------------------------
--- tortls.c.was Tue Jul 13 01:37:00 2010
+++ tortls.c Mon Jul 19 19:17:42 2010
@@ -21,6 +21,17 @@
#endif
#include <assert.h>
+#ifdef MS_WINDOWS /*wrkard for dtls1.h >= 0.9.8m of "#include
<winsock.h>"*/
+ #define WIN32_WINNT 0x400
+ #define _WIN32_WINNT 0x400
+ #define WIN32_LEAN_AND_MEAN
+ #if defined(_MSC_VER) && (_MSC_VER < 1300)
+ #include <winsock.h>
+ #else
+ #include <winsock2.h>
+ #include <ws2tcpip.h>
+ #endif
+#endif
#include <openssl/ssl.h>
#include <openssl/ssl3.h>
#include <openssl/err.h>
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1709>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online