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 */