From a8bb3b3b2c05dfc1a1192a02669f43a43b91f8cc Mon Sep 17 00:00:00 2001 From: YuMeiJie Date: Wed, 2 Sep 2020 09:46:13 +0800 Subject: [PATCH] include: re-map UV__EPROTO from 4046 to -4046 Refs: https://github.com/libuv/libuv/pull/1687 Fixes: https://github.com/libuv/libuv/issues/2977 PR-URL: https://github.com/libuv/libuv/pull/2979 Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno --- include/uv/errno.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uv/errno.h b/include/uv/errno.h index 165fd11c..8d4d7686 100644 --- a/include/uv/errno.h +++ b/include/uv/errno.h @@ -317,7 +317,7 @@ #if defined(EPROTO) && !defined(_WIN32) # define UV__EPROTO UV__ERR(EPROTO) #else -# define UV__EPROTO UV__ERR(4046) +# define UV__EPROTO UV__ERR(-4046) #endif #if defined(EPROTONOSUPPORT) && !defined(_WIN32)