Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

unix: map EWOULDBLOCK to UV_EAGAIN

  • Loading branch information...
commit 73cc3677fcdcef507154cc5860e3d0db1faa0c17 1 parent f9fcaf5
Ben Noordhuis bnoordhuis authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  src/unix/error.c
3  src/unix/error.c
@@ -68,6 +68,9 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
68 68 case EBADF: return UV_EBADF;
69 69 case EPIPE: return UV_EPIPE;
70 70 case EAGAIN: return UV_EAGAIN;
  71 +#if EWOULDBLOCK != EAGAIN
  72 + case EWOULDBLOCK: return UV_EAGAIN;
  73 +#endif
71 74 case ECONNRESET: return UV_ECONNRESET;
72 75 case EFAULT: return UV_EFAULT;
73 76 case EMFILE: return UV_EMFILE;

0 comments on commit 73cc367

Please sign in to comment.
Something went wrong with that request. Please try again.