include: map EILSEQ error code
PR-URL: https://github.com/libuv/libuv/pull/2440 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
24e65f776d
commit
43c74a6ee9
@ -143,6 +143,7 @@ extern "C" {
|
|||||||
XX(EREMOTEIO, "remote I/O error") \
|
XX(EREMOTEIO, "remote I/O error") \
|
||||||
XX(ENOTTY, "inappropriate ioctl for device") \
|
XX(ENOTTY, "inappropriate ioctl for device") \
|
||||||
XX(EFTYPE, "inappropriate file type or format") \
|
XX(EFTYPE, "inappropriate file type or format") \
|
||||||
|
XX(EILSEQ, "illegal byte sequence") \
|
||||||
|
|
||||||
#define UV_HANDLE_TYPE_MAP(XX) \
|
#define UV_HANDLE_TYPE_MAP(XX) \
|
||||||
XX(ASYNC, async) \
|
XX(ASYNC, async) \
|
||||||
|
|||||||
@ -439,5 +439,10 @@
|
|||||||
# define UV__EFTYPE (-4028)
|
# define UV__EFTYPE (-4028)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(EILSEQ) && !defined(_WIN32)
|
||||||
|
# define UV__EILSEQ UV__ERR(EILSEQ)
|
||||||
|
#else
|
||||||
|
# define UV__EILSEQ (-4027)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* UV_ERRNO_H_ */
|
#endif /* UV_ERRNO_H_ */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user