From 248ca5d61283b98066828cb522adaf4c7187f570 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 3 Dec 2011 23:31:02 +0100 Subject: [PATCH] unix: translate ETIMEDOUT to UV_ETIMEDOUT --- src/unix/error.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix/error.c b/src/unix/error.c index 5f43709d..e904d390 100644 --- a/src/unix/error.c +++ b/src/unix/error.c @@ -82,6 +82,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) { case EHOSTUNREACH: return UV_EHOSTUNREACH; case EAI_NONAME: return UV_ENOENT; case ESRCH: return UV_ESRCH; + case ETIMEDOUT: return UV_ETIMEDOUT; default: return UV_UNKNOWN; }