aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/include/janet.h
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2021-07-21 21:46:26 -0500
committerCalvin Rose <calsrose@gmail.com>2021-07-21 21:46:26 -0500
commit54d73f67220e9940702b7d99956b6ee7144a10e7 (patch)
treea5271c9373f7729c02b95c2594d043d5b3a1da8b /src/include/janet.h
parentAdd table/clear. (diff)
Make epoll the default on Linux for event loop implementations.
Diffstat (limited to 'src/include/janet.h')
-rw-r--r--src/include/janet.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/janet.h b/src/include/janet.h
index c14aacdb..7e68236e 100644
--- a/src/include/janet.h
+++ b/src/include/janet.h
@@ -193,6 +193,11 @@ extern "C" {
#define JANET_INT_TYPES
#endif
+/* Enable or disable epoll on Linux */
+#if defined(JANET_LINUX) && !defined(JANET_EV_NO_EPOLL)
+#define JANET_EV_EPOLL
+#endif
+
/* How to export symbols */
#ifndef JANET_API
#ifdef JANET_WINDOWS