X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/2dff0867c6069c41ede598cd78bb2d5223fde025..7602195912eb8ac80c00b8a1df790f2a97732feb:/ev_win32.c?ds=sidebyside diff --git a/ev_win32.c b/ev_win32.c index 8357426..e95969d 100644 --- a/ev_win32.c +++ b/ev_win32.c @@ -73,8 +73,15 @@ ev_pipe (int filedes [2]) closesocket (listener); +#if EV_SELECT_IS_WINSOCKET + filedes [0] = _open_osfhandle (sock [0], 0); + filedes [1] = _open_osfhandle (sock [1], 0); +#else + /* when select isn't winsocket, we also expect socket, connect, accept etc. + * to work on fds */ filedes [0] = sock [0]; filedes [1] = sock [1]; +#endif return 0;