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>
This commit is contained in:
Jeffrey H. Johnson 2024-11-20 13:24:20 +00:00 committed by GitHub
parent 2907f6d69e
commit 15e3f84678
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -227,7 +227,7 @@ static void uv__async_send(uv_loop_t* loop) {
len = sizeof(val); len = sizeof(val);
fd = loop->async_io_watcher.fd; /* eventfd */ fd = loop->async_io_watcher.fd; /* eventfd */
} }
#elif defined(UV__KQUEUE_EVFILT_USER) #elif UV__KQUEUE_EVFILT_USER
struct kevent ev; struct kevent ev;
if (kqueue_evfilt_user_support) { if (kqueue_evfilt_user_support) {