unix: remove deprecated errno constants

Various errno constants were deprecated by POSIX. libc++ added deprecation
markers on these constants.

This change removes the usage of these constants to fix a compilation failure
due to mappings of those constants.

See: https://github.com/llvm/llvm-project/pull/80542
This commit is contained in:
Shelley Vohr 2025-11-11 12:16:49 +01:00
parent b33162dd0b
commit 881e0dcc38
No known key found for this signature in database
GPG Key ID: F13993A75599653C
2 changed files with 0 additions and 13 deletions

View File

@ -156,7 +156,6 @@ struct uv__queue {
XX(EFTYPE, "inappropriate file type or format") \
XX(EILSEQ, "illegal byte sequence") \
XX(ESOCKTNOSUPPORT, "socket type not supported") \
XX(ENODATA, "no data available") \
XX(EUNATCH, "protocol driver not attached") \
XX(ENOEXEC, "exec format error") \

View File

@ -456,18 +456,6 @@
# define UV__ESOCKTNOSUPPORT (-4025)
#endif
/* FreeBSD defines ENODATA in /usr/include/c++/v1/errno.h which is only visible
* if C++ is being used. Define it directly to avoid problems when integrating
* libuv in a C++ project.
*/
#if defined(ENODATA) && !defined(_WIN32)
# define UV__ENODATA UV__ERR(ENODATA)
#elif defined(__FreeBSD__)
# define UV__ENODATA (-9919)
#else
# define UV__ENODATA (-4024)
#endif
#if defined(EUNATCH) && !defined(_WIN32)
# define UV__EUNATCH UV__ERR(EUNATCH)
#else