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

+9 -3
View File
@@ -122,6 +122,7 @@ int myrand(void * entropy, int len){
}
#ifndef WITH_POLL
#ifndef WITH_WSAPOLL
int
#ifdef _WIN32
WINAPI
@@ -157,6 +158,7 @@ int
return num;
}
#endif
#endif
struct sockfuncs so = {
socket,
@@ -168,10 +170,14 @@ struct sockfuncs so = {
getsockname,
getsockopt,
setsockopt,
#ifdef WITH_POLL
poll,
#else
#ifndef WITH_POLL
#ifndef WITH_WSAPOLL
mypoll,
#else
WSAPoll,
#endif
#else
poll,
#endif
(void *)send,
(void *)sendto,