diff options
| author | 2021-09-03 14:29:13 -0500 | |
|---|---|---|
| committer | 2021-09-03 14:33:47 -0500 | |
| commit | a209a0128425f856327dedaef9630672e0cb4123 (patch) | |
| tree | 248fc9ed07ed99345264979068f50be669892aa9 /src/include/janet.h | |
| parent | Errored threads always emit stacktrace or supervisor event. (diff) | |
Add kqueue support to Janet
Note that this is a work in progress and simply a first attempt at
getting some code into place before being able to test it. This code
follows of sorts both the poll and epoll sections of the codebase hoping
to achieve the exact same.
Diffstat (limited to 'src/include/janet.h')
| -rw-r--r-- | src/include/janet.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/janet.h b/src/include/janet.h index 0916c1d0..9926ed4d 100644 --- a/src/include/janet.h +++ b/src/include/janet.h @@ -198,6 +198,11 @@ extern "C" { #define JANET_EV_EPOLL #endif +/* TODO: Probably breaks NetBSD, might need help here. */ +#if defined(JANET_BSD) && !defined(JANET_EV_NO_KQUEUE) +#define JANET_EV_KQUEUE +#endif + /* How to export symbols */ #ifndef JANET_API #ifdef JANET_WINDOWS |
