X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/9d89dd06da51b0e009e9be53da50836e7dc7408c..f33a7d9fc29fddfc275c32ac89895119dd0ffeda:/ev.c?ds=inline diff --git a/ev.c b/ev.c index bdb3d19..8a915a4 100644 --- a/ev.c +++ b/ev.c @@ -602,7 +602,11 @@ fd_reify (EV_P) 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