Fix compilation with mingw and OpenSSL 0.9.8m+

This commit is contained in:
mingw-san 2010-07-26 15:05:11 -04:00 committed by Nick Mathewson
parent 6cee3d466d
commit 856a36c434
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,3 @@
o Minor features
- Build correctly on mingw with more recent version of OpenSSL 0.9.8.
Patch from mingw-san.

View File

@ -21,6 +21,17 @@
#endif #endif
#include <assert.h> #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/ssl.h>
#include <openssl/ssl3.h> #include <openssl/ssl3.h>
#include <openssl/err.h> #include <openssl/err.h>