[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] patch to released 2.0.4 for Windows
Hi there! I have a patch for 2.0.4 in order to compile on Windows
(tested on Windows 2008 64-bit), if not already addressed. Small issue.
See attached.
*** libevent-2.0.4-alpha/select.c Fri Feb 26 22:16:15 2010
--- libevent-2.0.4-alpha.patched/select.c Thu Mar 11 12:58:53 2010
***************
*** 168,174 ****
--- 168,178 ----
event_debug(("%s: select reports %d", __func__, res));
check_selectop(sop);
+ #ifndef _WIN32
i = random() % (nfds+1);
+ #else
+ i = rand() % (nfds+1);
+ #endif
for (j = 0; j <= nfds; ++j) {
if (++i >= nfds+1)
i = 0;