unix, windows: map ENOPROTOOPT errno

Fixes #1143
This commit is contained in:
Saúl Ibarra Corretgé 2014-02-24 09:19:12 +01:00
parent 5ac214c712
commit 4a023fc078
2 changed files with 7 additions and 0 deletions

View File

@ -376,4 +376,10 @@
# define UV__EFBIG (-4036)
#endif
#if defined(ENOPROTOOPT) && !defined(_WIN32)
# define UV__ENOPROTOOPT (-ENOPROTOOPT)
#else
# define UV__ENOPROTOOPT (-4035)
#endif
#endif /* UV_ERRNO_H_ */

View File

@ -114,6 +114,7 @@ extern "C" {
XX(ENOENT, "no such file or directory") \
XX(ENOMEM, "not enough memory") \
XX(ENONET, "machine is not on the network") \
XX(ENOPROTOOPT, "protocol not available") \
XX(ENOSPC, "no space left on device") \
XX(ENOSYS, "function not implemented") \
XX(ENOTCONN, "socket is not connected") \