X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/2fde047707205b8d8f1c71482d2df57105217e17..aad25d9f3779968dc81e15e9eea4f10d78c008ff:/ev_select.c diff --git a/ev_select.c b/ev_select.c index 0dfa312..a0db3b6 100644 --- a/ev_select.c +++ b/ev_select.c @@ -1,4 +1,6 @@ /* + * libev select fd activity backend + * * Copyright (c) 2007 Marc Alexander Lehmann * All rights reserved. * @@ -33,7 +35,9 @@ #include /* for unix systems */ -#include +#ifndef WIN32 +# include +#endif #include #include @@ -114,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 (); } }