0
0
mirror of https://gitlab.torproject.org/tpo/core/tor.git synced 2024-09-20 20:23:03 +02:00

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 ff014eb5ea
commit 78df6404eb
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

@ -17,6 +17,17 @@
#include "orconfig.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/ssl3.h>
#include <openssl/err.h>