From 59d875994dd76de8f873ac42b577d77441ddd44f Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 23 Sep 2020 20:08:41 -0400 Subject: [PATCH] include: remove incorrect UV__ERR() for EPROTO https://github.com/libuv/libuv/pull/2979 negated the value of UV__EPROTO on platforms that don't define EPROTO, but it didn't remove the surrounding UV__ERR() call. This was causing numerous test failures in Node.js. Refs: https://github.com/libuv/libuv/issues/3000 PR-URL: https://github.com/libuv/libuv/pull/3003 Reviewed-By: Richard Lau Reviewed-By: Ben Noordhuis --- 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 8d4d7686..aadce9c1 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 (-4046) #endif #if defined(EPROTONOSUPPORT) && !defined(_WIN32)