auto merge of #10346 : klutzy/rust/mingw64-32-fix, r=alexcrichton
Fixes #10327
This commit is contained in:
commit
35c3aaf5c5
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,9 @@
|
||||||
|
|
||||||
#include_next <winsock2.h>
|
#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 {
|
typedef struct pollfd {
|
||||||
SOCKET fd;
|
SOCKET fd;
|
||||||
short events;
|
short events;
|
||||||
|
@ -10,3 +13,5 @@ typedef struct pollfd {
|
||||||
} WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLFD;
|
} WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLFD;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // _FIX_WINSOCK2_H
|
||||||
|
|
Loading…
Reference in a new issue