mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Fix usage in Windows XP targetting projects
This is important since this stuff is in publicly included headers and even though the usage of the WSAPoll API is a runtime decision the public headers may be used in code that needs to build with _WIN32_WINNT=0x0501 to support WinXP. When building a project using libwebsockets with that define set to 0x0501 winsock.h will not define the WSAPOLLFD struct causing that project to fail to compile.
This commit is contained in:
parent
5dc62ead9d
commit
b85a45723e
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@
|
|||
#define DEF_POLL_STUFF
|
||||
#endif
|
||||
|
||||
#if _WIN32_WINNT < 0x0600
|
||||
#define DEF_POLL_STUFF
|
||||
#endif
|
||||
|
||||
#ifdef DEF_POLL_STUFF
|
||||
|
||||
#include <winsock2.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue