unix,win: map ENOEXEC errno

This commit is contained in:
Saúl Ibarra Corretgé 2024-07-16 23:59:20 +02:00
parent 0caf5bb876
commit 64f4502b9b
2 changed files with 7 additions and 0 deletions

View File

@ -157,6 +157,7 @@ struct uv__queue {
XX(ESOCKTNOSUPPORT, "socket type not supported") \
XX(ENODATA, "no data available") \
XX(EUNATCH, "protocol driver not attached") \
XX(ENOEXEC, "exec format error") \
#define UV_HANDLE_TYPE_MAP(XX) \
XX(ASYNC, async) \

View File

@ -474,4 +474,10 @@
# define UV__EUNATCH (-4023)
#endif
#if defined(ENOEXEC) && !defined(_WIN32)
# define UV__ENOEXEC UV__ERR(ENOEXEC)
#else
# define UV__ENOEXEC (-4022)
#endif
#endif /* UV_ERRNO_H_ */