diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2011-10-11 16:56:43 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2011-10-11 16:56:43 +0200 |
commit | c215262db4421e466d6110f03cd2e19c77a0a4df (patch) | |
tree | f15e542fa51b0cfe26a8518718a93614e6459f20 /deps/uv/src/unix/kqueue.c | |
parent | 24dabec039a83b52ebe1d8ff971caceda26b948e (diff) | |
download | android-node-v8-c215262db4421e466d6110f03cd2e19c77a0a4df.tar.gz android-node-v8-c215262db4421e466d6110f03cd2e19c77a0a4df.tar.bz2 android-node-v8-c215262db4421e466d6110f03cd2e19c77a0a4df.zip |
uv: upgrade to 47d22ac
Diffstat (limited to 'deps/uv/src/unix/kqueue.c')
-rw-r--r-- | deps/uv/src/unix/kqueue.c | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/deps/uv/src/unix/kqueue.c b/deps/uv/src/unix/kqueue.c index 924865bdff..c2cb7194aa 100644 --- a/deps/uv/src/unix/kqueue.c +++ b/deps/uv/src/unix/kqueue.c @@ -26,6 +26,8 @@ #include <string.h> #include <errno.h> +#if HAVE_KQUEUE + #include <sys/sysctl.h> #include <sys/types.h> #include <sys/event.h> @@ -85,7 +87,6 @@ int uv_fs_event_init(uv_loop_t* loop, uv_fs_event_t* handle, const char* filename, uv_fs_event_cb cb) { -#if HAVE_KQUEUE int fd; if (cb == NULL) { @@ -107,10 +108,6 @@ int uv_fs_event_init(uv_loop_t* loop, uv__fs_event_start(handle); return 0; -#else - uv__set_sys_error(loop, ENOSYS); - return -1; -#endif } @@ -119,3 +116,26 @@ void uv__fs_event_destroy(uv_fs_event_t* handle) { uv__close(handle->fd); handle->fd = -1; } + +#else /* !HAVE_KQUEUE */ + +int uv_fs_event_init(uv_loop_t* loop, + uv_fs_event_t* handle, + const char* filename, + uv_fs_event_cb cb) { + uv__set_sys_error(loop, ENOSYS); + return -1; +} + + +void uv__fs_event_destroy(uv_fs_event_t* handle) { + assert(0 && "unreachable"); +} + + +/* Called by libev, don't touch. */ +void uv__kqueue_hack(EV_P_ int fflags, ev_io *w) { + assert(0 && "unreachable"); +} + +#endif /* HAVE_KQUEUE */ |