After emptyVoid at --->
https://github.com/warmcat/libwebsockets/issues/374
Signed-off-by: Andy Green <andy.green@linaro.org>
#include "lws_config.h"
#if defined(WIN32) || defined(_WIN32)
-#if (WINVER < 0x0600)
-#undef WINVER
-#undef _WIN32_WINNT
-#define WINVER 0x0600
-#define _WIN32_WINNT WINVER
-#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#define lws_socket_is_valid(x) (!!x)
#define LWS_SOCK_INVALID 0
#include <winsock2.h>
+#include <ws2tcpip.h>
#include <windows.h>
#include <tchar.h>
#ifdef LWS_HAVE_IN6ADDR_H
+#if defined(_WIN32) && defined(EXTERNAL_POLL)
+#define WINVER 0x0600
+#define _WIN32_WINNT 0x0600
+#define poll(fdArray, fds, timeout) WSAPoll((LPWSAPOLLFD)(fdArray), (ULONG)(fds), (INT)(timeout))
+#endif
+
#include "lws_config.h"
#include <stdio.h>
#ifdef _WIN32
#include <io.h>
-#ifdef EXTERNAL_POLL
-#define poll WSAPoll
-#endif
#include "gettimeofday.h"
#else
#include <syslog.h>