windows fix wsapoll conflict on some toolchains
After EmptyVoid at github https://github.com/warmcat/libwebsockets/issues/374 Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
11c05bfa09
commit
375a193ff4
1 changed files with 6 additions and 4 deletions
|
@ -335,16 +335,18 @@ enum lws_callback_reasons {
|
|||
};
|
||||
|
||||
|
||||
#if defined(_WIN32) && (_WIN32_WINNT < 0x0600)
|
||||
#if defined(_WIN32)
|
||||
typedef SOCKET lws_sockfd_type;
|
||||
typedef HANDLE lws_filefd_type;
|
||||
#define lws_sockfd_valid(sfd) (!!sfd)
|
||||
struct lws_pollfd {
|
||||
lws_sockfd_type fd;
|
||||
SHORT events;
|
||||
SHORT revents;
|
||||
lws_sockfd_type fd;
|
||||
SHORT events;
|
||||
SHORT revents;
|
||||
};
|
||||
#if (_WIN32_WINNT < 0x0600)
|
||||
WINSOCK_API_LINKAGE int WSAAPI WSAPoll(struct lws_pollfd fdArray[], ULONG fds, INT timeout);
|
||||
#endif
|
||||
#else
|
||||
|
||||
#if defined(MBED_OPERATORS)
|
||||
|
|
Loading…
Add table
Reference in a new issue