]> git.llucax.com Git - software/libev.git/blobdiff - ev_select.c
do not support multiple event bases. period.
[software/libev.git] / ev_select.c
index 7bbf6222fd8c635a6c1c124377c27a8d5134f0a6..a0db3b6430cef3a115abce8906965fd901d1310b 100644 (file)
@@ -35,7 +35,9 @@
 #include <unistd.h>
 
 /* for unix systems */
-#include <sys/select.h>
+#ifndef WIN32
+# include <sys/select.h>
+#endif
 
 #include <string.h>
 #include <inttypes.h>
@@ -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 ();
     }
 }