projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[socket] Fix bad parameter passed to select (#4390)
[mono.git]
/
mono
/
utils
/
mono-poll.c
diff --git
a/mono/utils/mono-poll.c
b/mono/utils/mono-poll.c
index 8900bb23572c0abb6a994afd1e68e968565a8d77..d81b4eb9168f050626d4afd5ab31628fd5d061fa 100755
(executable)
--- a/
mono/utils/mono-poll.c
+++ b/
mono/utils/mono-poll.c
@@
-1,3
+1,5
@@
+#include <config.h>
+
#ifdef HOST_WIN32
/* For select */
#include <winsock2.h>
@@
-58,7
+60,7
@@
mono_poll (mono_pollfd *ufds, unsigned int nfds, int timeout)
return 1;
}
#else
- if (fd > FD_SETSIZE) {
+ if (fd >
=
FD_SETSIZE) {
ufds [i].revents = MONO_POLLNVAL;
return 1;
}