commit 1616caa17764c878bc18c6344a0f7f60b2cb596c
parent 2add933d4fa7327b895d1ad2f9acfa0977d02be3
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 9 Dec 2018 15:43:58 +0300
configure: fixed build for latest MinGW
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -695,6 +695,9 @@ AS_IF([test "$enable_poll" != "no"],
[AC_INCLUDES_DEFAULT]),
[AC_MSG_CHECKING([for WSAPoll()])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+#if defined(_WIN32) && ! defined(__CYGWIN__) && ! defined(_WIN32_WINNT)
+#define _WIN32_WINNT 0x0501
+#endif
#include <winsock2.h>
]],[[
WSAPOLLFD fda[2];