From 8e76306ec2565e125816edba3fb5b900b59601a7 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 17 Jul 2017 10:36:25 +0200 Subject: [PATCH] unix, windows: map EREMOTEIO errno MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/libuv/libuv/pull/1424 Reviewed-By: Santiago Gimeno Reviewed-By: Saúl Ibarra Corretgé --- include/uv-errno.h | 6 ++++++ include/uv.h | 1 + 2 files changed, 7 insertions(+) diff --git a/include/uv-errno.h b/include/uv-errno.h index f1371517c..32bbc5177 100644 --- a/include/uv-errno.h +++ b/include/uv-errno.h @@ -416,4 +416,10 @@ # define UV__EHOSTDOWN (-4031) #endif +#if defined(EREMOTEIO) && !defined(_WIN32) +# define UV__EREMOTEIO (-EREMOTEIO) +#else +# define UV__EREMOTEIO (-4030) +#endif + #endif /* UV_ERRNO_H_ */ diff --git a/include/uv.h b/include/uv.h index af500cb01..6aa43a271 100644 --- a/include/uv.h +++ b/include/uv.h @@ -140,6 +140,7 @@ extern "C" { XX(ENXIO, "no such device or address") \ XX(EMLINK, "too many links") \ XX(EHOSTDOWN, "host is down") \ + XX(EREMOTEIO, "remote I/O error") \ #define UV_HANDLE_TYPE_MAP(XX) \ XX(ASYNC, async) \