From c9a50c5088f1066c7908d2d7176de56e2756e2b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Vavru=C5=A1a?= Date: Mon, 25 May 2015 15:54:26 +0200 Subject: [PATCH] daemon/engine: compat for Lua < 5.2 --- daemon/engine.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/engine.c b/daemon/engine.c index e37648456..aad178d73 100644 --- a/daemon/engine.c +++ b/daemon/engine.c @@ -27,6 +27,11 @@ #include "lib/cache.h" #include "lib/defines.h" +/** @internal Compatibility wrapper for Lua < 5.2 */ +#if LUA_VERSION_NUM < 502 +#define lua_rawlen(L, obj) lua_objlen((L), (obj)) +#endif + /* * Global bindings. */ -- 2.47.2