diff --git a/include/uv.h b/include/uv.h index 38397424..d788bc17 100644 --- a/include/uv.h +++ b/include/uv.h @@ -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) \ diff --git a/include/uv/errno.h b/include/uv/errno.h index 71906b3f..0bc429bc 100644 --- a/include/uv/errno.h +++ b/include/uv/errno.h @@ -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_ */