From 78df6404eb8d28843c7943341a4d4602c6f8d2bb Mon Sep 17 00:00:00 2001 From: mingw-san Date: Mon, 26 Jul 2010 15:05:11 -0400 Subject: Fix compilation with mingw and OpenSSL 0.9.8m+ --- src/common/tortls.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/common/tortls.c') diff --git a/src/common/tortls.c b/src/common/tortls.c index 2915f7919..4d11d6d7f 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -17,6 +17,17 @@ #include "orconfig.h" #include +#ifdef MS_WINDOWS /*wrkard for dtls1.h >= 0.9.8m of "#include "*/ + #define WIN32_WINNT 0x400 + #define _WIN32_WINNT 0x400 + #define WIN32_LEAN_AND_MEAN + #if defined(_MSC_VER) && (_MSC_VER < 1300) + #include + #else + #include + #include + #endif +#endif #include #include #include -- cgit v1.2.3