From a609f34971955450c90db246e992c511cc933d5e Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Tue, 14 Dec 2021 16:45:25 +0100 Subject: [PATCH] fix compilation with lua 5.4 fixes #621 --- lsyncd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lsyncd.c b/lsyncd.c index 7ca6ce8..4106333 100644 --- a/lsyncd.c +++ b/lsyncd.c @@ -46,6 +46,11 @@ #include #include +#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 504 +#define lua_objlen lua_rawlen +#endif + + /* | The Lua part of Lsyncd */