if (events)
{
unsigned long argp;
- anfd->handle = _get_osfhandle (fd);
+ #ifdef EV_FD_TO_WIN32_HANDLE
+ anfd->handle = EV_FD_TO_WIN32_HANDLE (fd);
+ #else
+ anfd->handle = _get_osfhandle (fd);
+ #endif
assert (("libev only supports socket fds in this configuration", ioctlsocket (anfd->handle, FIONREAD, &argp) == 0));
}
#endif
{
ev_timer *w = (ev_timer *)timers [0];
- /*assert (("inactive timer on timer heap detected", ev_is_active (w)));*/
+ assert (("inactive timer on timer heap detected", ev_is_active (w)));
/* first reschedule or stop timer */
if (w->repeat)