diff options
author | libuv upstream <libuv@googlegroups.com> | 2018-05-06 21:48:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-05-07 15:47:58 (GMT) |
commit | c8b67ea119c4000018238f6c3201a1364356d93a (patch) | |
tree | 0ab31e431ee82c0796c1b06922347762aa12b347 /src/unix/poll.c | |
parent | f4a26c748b5ea2cafecdf5490b744a2b167c01ae (diff) | |
download | CMake-c8b67ea119c4000018238f6c3201a1364356d93a.zip CMake-c8b67ea119c4000018238f6c3201a1364356d93a.tar.gz CMake-c8b67ea119c4000018238f6c3201a1364356d93a.tar.bz2 |
libuv 2018-05-06 (bf605bd7)
Code extracted from:
https://github.com/libuv/libuv.git
at commit bf605bd7d0dd5660663e8e2eb44d63aa3355e268 (v1.x).
Diffstat (limited to 'src/unix/poll.c')
-rw-r--r-- | src/unix/poll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/poll.c b/src/unix/poll.c index 816c7dc..f3b0bf4 100644 --- a/src/unix/poll.c +++ b/src/unix/poll.c @@ -47,7 +47,7 @@ static void uv__poll_io(uv_loop_t* loop, uv__io_t* w, unsigned int events) { if ((events & POLLERR) && !(events & UV__POLLPRI)) { uv__io_stop(loop, w, POLLIN | POLLOUT | UV__POLLRDHUP | UV__POLLPRI); uv__handle_stop(handle); - handle->poll_cb(handle, -EBADF, 0); + handle->poll_cb(handle, UV_EBADF, 0); return; } @@ -76,7 +76,7 @@ int uv_poll_init(uv_loop_t* loop, uv_poll_t* handle, int fd) { * Workaround for e.g. kqueue fds not supporting ioctls. */ err = uv__nonblock(fd, 1); - if (err == -ENOTTY) + if (err == UV_ENOTTY) if (uv__nonblock == uv__nonblock_ioctl) err = uv__nonblock_fcntl(fd, 1); |