Define WSAPOLLFD only on mingw 4.x

Fixes #10327
This commit is contained in:
klutzy 2013-11-07 13:37:20 +09:00
parent 22eb11c09b
commit d01ba2e824

View File

@ -3,6 +3,9 @@
#include_next <winsock2.h>
// mingw 4.0.x has broken headers (#9246) but mingw-w64 does not.
#if defined(__MINGW_MAJOR_VERSION) && __MINGW_MAJOR_VERSION == 4
typedef struct pollfd {
SOCKET fd;
short events;
@ -10,3 +13,5 @@ typedef struct pollfd {
} WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLFD;
#endif
#endif // _FIX_WINSOCK2_H