Permalink
Browse files

unix: map EWOULDBLOCK to UV_EAGAIN

  • Loading branch information...
bnoordhuis committed Apr 21, 2012
1 parent f9fcaf5 commit 73cc3677fcdcef507154cc5860e3d0db1faa0c17
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/unix/error.c
View
@@ -68,6 +68,9 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case EBADF: return UV_EBADF;
case EPIPE: return UV_EPIPE;
case EAGAIN: return UV_EAGAIN;
+#if EWOULDBLOCK != EAGAIN
+ case EWOULDBLOCK: return UV_EAGAIN;
+#endif
case ECONNRESET: return UV_ECONNRESET;
case EFAULT: return UV_EFAULT;
case EMFILE: return UV_EMFILE;

0 comments on commit 73cc367

Please sign in to comment.