From f78a3f88ff0f23405cab838b62f0fb204902455b Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Mon, 19 Aug 2019 22:26:25 -0700 Subject: [PATCH] add poll alias to WSAPoll on Windows --- ixwebsocket/IXNetSystem.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ixwebsocket/IXNetSystem.h b/ixwebsocket/IXNetSystem.h index 10f753fb..aa0ab2c2 100644 --- a/ixwebsocket/IXNetSystem.h +++ b/ixwebsocket/IXNetSystem.h @@ -12,6 +12,12 @@ #include #include #include + +static inline int poll(struct pollfd *pfd, unsigned long nfds, int timeout) +{ + return WSAPoll(pfd, nfds, timeout); +} + #else #include #include