Skip to content

Commit 1e8a58c

Browse files
Use kqueue on netbsd.
1 parent 418f832 commit 1e8a58c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kqueue_pollutil.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ const struct PollResult* blockingPoll(
245245
&(pollState->pollResult.readyFDInfoArray[i]);
246246
const struct kevent* readyKEvent =
247247
&(internalPollState->keventArray[i]);
248-
readyFDInfo->data = readyKEvent->udata;
248+
readyFDInfo->data = (void*)readyKEvent->udata;
249249
readyFDInfo->readyForRead = (readyKEvent->filter == EVFILT_READ);
250250
readyFDInfo->readyForWrite = (readyKEvent->filter == EVFILT_WRITE);
251251
readyFDInfo->readyForError = false;

pollutil.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#if (!defined(PROXY_DISABLE_EPOLL)) && defined(__linux__)
1818
#include "epoll_pollutil.c"
19-
#elif (!defined(PROXY_DISABLE_KQUEUE)) && (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__))
19+
#elif (!defined(PROXY_DISABLE_KQUEUE)) && (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__APPLE__))
2020
#include "kqueue_pollutil.c"
2121
#else
2222
#include "poll_pollutil.c"

0 commit comments

Comments
 (0)