include: map ENODATA error code (#3802)

Fixes: https://github.com/libuv/libuv/issues/3795
This commit is contained in:
Ben Noordhuis 2022-10-25 13:00:45 +02:00 committed by GitHub
parent e900006642
commit c83b9bd9c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -147,6 +147,7 @@ extern "C" {
XX(EFTYPE, "inappropriate file type or format") \
XX(EILSEQ, "illegal byte sequence") \
XX(ESOCKTNOSUPPORT, "socket type not supported") \
XX(ENODATA, "no data available") \
#define UV_HANDLE_TYPE_MAP(XX) \
XX(ASYNC, async) \

View File

@ -457,4 +457,10 @@
# define UV__ESOCKTNOSUPPORT (-4025)
#endif
#if defined(ENODATA) && !defined(_WIN32)
# define UV__ENODATA UV__ERR(ENODATA)
#else
# define UV__ENODATA (-4024)
#endif
#endif /* UV_ERRNO_H_ */