Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: map EWOULDBLOCK to UV_EAGAIN

  • Loading branch information...
bnoordhuis committed Apr 21, 2012
1 parent feafcdb commit a29892d9d4f835f6955371f53c6ec78f0b1ca6d7
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/unix/error.c
@@ -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 a29892d

Please sign in to comment.
You can’t perform that action at this time.