From 802d1bcb034903e65c846c9a16e0782489a86878 Mon Sep 17 00:00:00 2001 From: Maarten Ditzel Date: Mon, 14 Apr 2014 13:56:01 +0200 Subject: [PATCH] Fix issue #971 --- src/windows.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/windows.hpp b/src/windows.hpp index 4f5d246d..5e98ffb8 100755 --- a/src/windows.hpp +++ b/src/windows.hpp @@ -50,7 +50,8 @@ #endif // Workaround missing Mstcpip.h in mingw32 (MinGW64 provides this) -#if defined __MINGW32__ && !defined SIO_KEEPALIVE_VALS && !defined __MINGW64__ +// __MINGW64_VERSION_MAJOR is only defined when using in mingw-w64 +#if defined __MINGW32__ && !defined SIO_KEEPALIVE_VALS && !defined __MINGW64_VERSION_MAJOR struct tcp_keepalive { u_long onoff; u_long keepalivetime;