mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Enable kqueue on MacOS
Make sure JANET_EV_KQUEUE is defined when JANET_APPLE is defined unless disabled by configuration.
This commit is contained in:
parent
121aa91139
commit
48a3b1f07f
@ -198,10 +198,16 @@ extern "C" {
|
|||||||
#define JANET_EV_EPOLL
|
#define JANET_EV_EPOLL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Enable or disable kqueue on BSD */
|
||||||
#if defined(JANET_BSD) && !defined(JANET_EV_NO_KQUEUE)
|
#if defined(JANET_BSD) && !defined(JANET_EV_NO_KQUEUE)
|
||||||
#define JANET_EV_KQUEUE
|
#define JANET_EV_KQUEUE
|
||||||
#endif
|
#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 */
|
/* How to export symbols */
|
||||||
#ifndef JANET_API
|
#ifndef JANET_API
|
||||||
#ifdef JANET_WINDOWS
|
#ifdef JANET_WINDOWS
|
||||||
|
Loading…
Reference in New Issue
Block a user