1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 23:53:02 +00:00

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.
This commit is contained in:
llmII
2021-09-03 14:29:13 -05:00
parent 7037532943
commit a209a01284
3 changed files with 160 additions and 0 deletions

View File

@@ -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