diff options
author | mingw-san <mingw-san> | 2010-07-26 15:05:11 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-07-26 15:05:11 -0400 |
commit | 856a36c43439da3478892758c0df777ac647d245 (patch) | |
tree | 39a9b9e6848c962416f467aa40cfedb5a8e214eb /src/common/tortls.c | |
parent | 6cee3d466d0b5109c0dd47623003cd28680faa9e (diff) | |
download | tor-856a36c43439da3478892758c0df777ac647d245.tar.gz tor-856a36c43439da3478892758c0df777ac647d245.zip |
Fix compilation with mingw and OpenSSL 0.9.8m+
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r-- | src/common/tortls.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index b3c91a6ca6..7dfdca6af9 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -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> |