Use WSAPoll on Windows (except lite version)

This commit is contained in:
z3APA3A committed 2018-04-21 23:57:42 +03:00
1 parent db485dd4c4
commit a42bb38d76
6 files changed
+48 -13

No files matched your search

+6 -1
View File
@@ -50,6 +50,11 @@ extern "C" {
#ifdef WITH_POLL
#include <poll.h>
#else
#ifdef WITH_WSAPOLL
#define poll(A,B,C) WSAPoll(A,B,C)
#else
struct mypollfd {
SOCKET fd; /* file descriptor */
@@ -80,7 +85,7 @@ int
#ifndef POLLNVAL
#define POLLNVAL 32
#endif
#endif
#endif