diff --git a/include/uv-errno.h b/include/uv-errno.h index e05cc4f4..466cdf2c 100644 --- a/include/uv-errno.h +++ b/include/uv-errno.h @@ -388,4 +388,10 @@ # define UV__ENOPROTOOPT (-4035) #endif +#if defined(ERANGE) && !defined(_WIN32) +# define UV__ERANGE (-ERANGE) +#else +# define UV__ERANGE (-4034) +#endif + #endif /* UV_ERRNO_H_ */ diff --git a/include/uv.h b/include/uv.h index 336ce27a..fb704f98 100644 --- a/include/uv.h +++ b/include/uv.h @@ -127,6 +127,7 @@ extern "C" { XX(EPROTO, "protocol error") \ XX(EPROTONOSUPPORT, "protocol not supported") \ XX(EPROTOTYPE, "protocol wrong type for socket") \ + XX(ERANGE, "result too large") \ XX(EROFS, "read-only file system") \ XX(ESHUTDOWN, "cannot send after transport endpoint shutdown") \ XX(ESPIPE, "invalid seek") \