aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/lua.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-07-14 16:51:40 +0200
committercbdev <cb@cbcdn.com>2019-07-14 16:51:40 +0200
commitf4f6f8c84a685b83f2406f8efb148b6699be14e9 (patch)
tree5d52edf9ccbed7d59c40778e4a87604482f55877 /backends/lua.c
parente776e02531aca45f424f7139e5d7304ba3096b45 (diff)
downloadmidimonster-f4f6f8c84a685b83f2406f8efb148b6699be14e9.tar.gz
midimonster-f4f6f8c84a685b83f2406f8efb148b6699be14e9.tar.bz2
midimonster-f4f6f8c84a685b83f2406f8efb148b6699be14e9.zip
Conditionally include timerfd headers
Diffstat (limited to 'backends/lua.c')
-rw-r--r--backends/lua.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/lua.c b/backends/lua.c
index 7fcd0ab..43a6fcc 100644
--- a/backends/lua.c
+++ b/backends/lua.c
@@ -1,7 +1,10 @@
#include <string.h>
-#include <sys/timerfd.h>
#include <unistd.h>
#include <errno.h>
+#ifdef MMBACKEND_LUA_TIMERFD
+#include <sys/timerfd.h>
+#endif
+
#include "lua.h"
#define BACKEND_NAME "lua"