aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/lua.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-07-14 16:49:31 +0200
committercbdev <cb@cbcdn.com>2019-07-14 16:49:31 +0200
commite776e02531aca45f424f7139e5d7304ba3096b45 (patch)
treeb5221228c7bca8f7f6804d573ed28d63197e8ae2 /backends/lua.h
parentf19d6e66b23ba719f474171b10e1ee294fb38d55 (diff)
downloadmidimonster-e776e02531aca45f424f7139e5d7304ba3096b45.tar.gz
midimonster-e776e02531aca45f424f7139e5d7304ba3096b45.tar.bz2
midimonster-e776e02531aca45f424f7139e5d7304ba3096b45.zip
Work around missing timerfd on OSX/Windows
Diffstat (limited to 'backends/lua.h')
-rw-r--r--backends/lua.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/lua.h b/backends/lua.h
index ccffef7..7aad891 100644
--- a/backends/lua.h
+++ b/backends/lua.h
@@ -4,6 +4,11 @@
#include <lualib.h>
#include <lauxlib.h>
+//OSX and Windows don't have the cool new toys...
+#ifdef __linux__
+ #define MMBACKEND_LUA_TIMERFD
+#endif
+
int init();
static int lua_configure(char* option, char* value);
static int lua_configure_instance(instance* inst, char* option, char* value);
@@ -13,6 +18,7 @@ static int lua_set(instance* inst, size_t num, channel** c, channel_value* v);
static int lua_handle(size_t num, managed_fd* fds);
static int lua_start();
static int lua_shutdown();
+static uint32_t lua_interval();
typedef struct /*_lua_instance_data*/ {
size_t channels;