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 <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
This commit is contained in:
YuMeiJie 2020-09-02 09:46:13 +08:00 committed by cjihrig
parent ea17e1cffb
commit a8bb3b3b2c
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -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)