From 48a3b1f07fcb7b6117a40ee07ed6764dc548814a Mon Sep 17 00:00:00 2001 From: llmII Date: Mon, 6 Sep 2021 16:01:06 -0500 Subject: [PATCH] Enable kqueue on MacOS Make sure JANET_EV_KQUEUE is defined when JANET_APPLE is defined unless disabled by configuration. --- src/include/janet.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/include/janet.h b/src/include/janet.h index ff4e104c..d8e17351 100644 --- a/src/include/janet.h +++ b/src/include/janet.h @@ -198,10 +198,16 @@ extern "C" { #define JANET_EV_EPOLL #endif +/* Enable or disable kqueue on BSD */ #if defined(JANET_BSD) && !defined(JANET_EV_NO_KQUEUE) #define JANET_EV_KQUEUE #endif +/* Enable or disable kqueue on Apple */ +#if defined(JANET_APPLE) && !defined(JANET_EV_NO_KQUEUE) +#define JANET_EV_KQUEUE +#endif + /* How to export symbols */ #ifndef JANET_API #ifdef JANET_WINDOWS