File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555# include <netinet/in.h>
5656#endif
5757
58+ #if defined(__APPLE__ ) || defined(__FreeBSD__ )
59+ #define NATIVE_KQUEUE 1
60+ #endif
61+
5862#ifndef _WIN32
5963#include <sys/socket.h>
6064#include <sys/stat.h>
Original file line number Diff line number Diff line change @@ -70,5 +70,7 @@ test_kevent_threading_close(struct test_context *ctx)
7070void
7171test_threading (struct test_context * ctx )
7272{
73+ #ifdef NATIVE_KQUEUE
7374 test (kevent_threading_close , ctx );
75+ #endif
7476}
Original file line number Diff line number Diff line change @@ -237,6 +237,8 @@ test_evfilt_user(struct test_context *ctx)
237237#ifdef EV_DISPATCH
238238 test (kevent_user_dispatch , ctx );
239239#endif
240+ #ifdef NATIVE_KQUEUE
240241 test (kevent_user_trigger_from_thread , ctx );
242+ #endif
241243 /* TODO: try different fflags operations */
242244}
You can’t perform that action at this time.
0 commit comments