Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: map EAFNOSUPPORT error code
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Nov 2, 2011
1 parent 7a53924 commit 8d5c64a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/error.c
Expand Up @@ -61,6 +61,7 @@ static int uv__translate_lib_error(int code) {
case UV_ENOSYS: return ENOSYS;
case UV_ENOENT: return ENOENT;
case UV_EACCESS: return EACCES;
case UV_EAFNOSUPPORT: return EAFNOSUPPORT;
case UV_EBADF: return EBADF;
case UV_EPIPE: return EPIPE;
case UV_EAGAIN: return EAGAIN;
Expand Down Expand Up @@ -90,6 +91,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case ENOSYS: return UV_ENOSYS;
case ENOENT: return UV_ENOENT;
case EACCES: return UV_EACCESS;
case EAFNOSUPPORT: return UV_EAFNOSUPPORT;
case EBADF: return UV_EBADF;
case EPIPE: return UV_EPIPE;
case EAGAIN: return UV_EAGAIN;
Expand Down

0 comments on commit 8d5c64a

Please sign in to comment.