mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-23 20:03:31 +01:00
Fix compilation with mingw and OpenSSL 0.9.8m+
This commit is contained in:
parent
ff014eb5ea
commit
78df6404eb
3
changes/mingw-openssl098m
Normal file
3
changes/mingw-openssl098m
Normal 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.
|
@ -17,6 +17,17 @@
|
|||||||
#include "orconfig.h"
|
#include "orconfig.h"
|
||||||
|
|
||||||
#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>
|
||||||
|
Loading…
Reference in New Issue
Block a user