Skip to content

Commit

Permalink
unix,windows: map EFTYPE errno
Browse files Browse the repository at this point in the history
Refs: nodejs/node#20588
PR-URL: libuv#1836
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
cjihrig committed May 9, 2018
1 parent b82c624 commit fe3fbd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/uv-errno.h
Original file line number Diff line number Diff line change
Expand Up @@ -433,5 +433,11 @@
# define UV__ENOTTY (-4029)
#endif

#if defined(EFTYPE) && !defined(_WIN32)
# define UV__EFTYPE UV__ERR(EFTYPE)
#else
# define UV__EFTYPE (-4028)
#endif


#endif /* UV_ERRNO_H_ */
1 change: 1 addition & 0 deletions include/uv.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ extern "C" {
XX(EHOSTDOWN, "host is down") \
XX(EREMOTEIO, "remote I/O error") \
XX(ENOTTY, "inappropriate ioctl for device") \
XX(EFTYPE, "inappropriate file type or format") \

#define UV_HANDLE_TYPE_MAP(XX) \
XX(ASYNC, async) \
Expand Down

0 comments on commit fe3fbd6

Please sign in to comment.