X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/34ce8134fec96758f92d4b5a47d151081c6b74d6..1c33c678365888dfd0e9ba9271dc55d6093d490d:/ev_select.c?ds=sidebyside diff --git a/ev_select.c b/ev_select.c index 7bbf622..a0db3b6 100644 --- a/ev_select.c +++ b/ev_select.c @@ -35,7 +35,9 @@ #include /* for unix systems */ -#include +#ifndef WIN32 +# include +#endif #include #include @@ -116,7 +118,9 @@ select_poll (ev_tstamp timeout) else if (res < 0) { if (errno == EBADF) - fd_recheck (); + fd_ebadf (); + else if (errno == ENOMEM) + fd_enomem (); } }