add poll alias to WSAPoll on Windows

This commit is contained in:
Benjamin Sergeant 2019-08-19 22:26:25 -07:00
parent 142987259c
commit f78a3f88ff

View File

@ -12,6 +12,12 @@
#include <basetsd.h>
#include <io.h>
#include <ws2def.h>
static inline int poll(struct pollfd *pfd, unsigned long nfds, int timeout)
{
return WSAPoll(pfd, nfds, timeout);
}
#else
#include <arpa/inet.h>
#include <errno.h>