aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/lua.c')
-rw-r--r--backends/lua.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/lua.c b/backends/lua.c
index 1cd965e..3555e72 100644
--- a/backends/lua.c
+++ b/backends/lua.c
@@ -52,6 +52,7 @@ int init(){
return 0;
}
+#ifndef MMBACKEND_LUA_TIMERFD
static uint32_t lua_interval(){
size_t n = 0;
uint64_t next_timer = 1000;
@@ -66,6 +67,7 @@ static uint32_t lua_interval(){
}
return 1000;
}
+#endif
static int lua_update_timerfd(){
uint64_t interval = 0, gcd, residual;