aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeffrey H. Johnson <trnsz@pobox.com>2024-11-20 13:24:20 +0000
committerGitHub <noreply@github.com>2024-11-20 14:24:20 +0100
commit15e3f84678118bda914d1dba8d9e78d9629e36dd (patch)
treec0872fd1c69e5c392a66998a537daa6f89e18b51 /src
parent2907f6d69eff0ebfd8408d92cba9a0af98c51466 (diff)
downloadlibuv-15e3f84678118bda914d1dba8d9e78d9629e36dd.tar.gz
libuv-15e3f84678118bda914d1dba8d9e78d9629e36dd.zip
unix: fix build breakage on haiku, openbsd, etc (#4618)
The compile-time detection check from commit 7b75935 ("kqueue: use EVFILT_USER for async if available") was not being used, breaking numerous operating systems. This commit hopefully unbreaks them. Fixes; https://github.com/libuv/libuv/issues/4608 Signed-off-by: Jeffrey H. Johnson <trnsz@pobox.com>
Diffstat (limited to 'src')
-rw-r--r--src/unix/async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/async.c b/src/unix/async.c
index aef25f6b..8265a43a 100644
--- a/src/unix/async.c
+++ b/src/unix/async.c
@@ -227,7 +227,7 @@ static void uv__async_send(uv_loop_t* loop) {
len = sizeof(val);
fd = loop->async_io_watcher.fd; /* eventfd */
}
-#elif defined(UV__KQUEUE_EVFILT_USER)
+#elif UV__KQUEUE_EVFILT_USER
struct kevent ev;
if (kqueue_evfilt_user_support) {