Windows: use select instead of WSAPoll, through a poll wrapper

This commit is contained in:
Benjamin Sergeant
2019-08-22 10:34:17 -07:00
parent c6198305d4
commit 193da820b2
5 changed files with 84 additions and 10 deletions

View File

@ -58,7 +58,7 @@ namespace ix
// shim to fallback to select on those platforms.
// See https://github.com/mpv-player/mpv/pull/5203/files for such a select wrapper.
//
int nfds = 1;
nfds_t nfds = 1;
struct pollfd fds[2];
fds[0].fd = sockfd;