diff options
| author | 2021-09-06 16:01:06 -0500 | |
|---|---|---|
| committer | 2021-09-06 16:01:06 -0500 | |
| commit | 48a3b1f07fcb7b6117a40ee07ed6764dc548814a (patch) | |
| tree | a4941f7fc1ef32e0d7c9173bdb437b080d43a806 /src/include/janet.h | |
| parent | Fixes for NetBSD (again) (diff) | |
Enable kqueue on MacOS
Make sure JANET_EV_KQUEUE is defined when JANET_APPLE is defined unless
disabled by configuration.
Diffstat (limited to 'src/include/janet.h')
| -rw-r--r-- | src/include/janet.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
