]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/bindings: Lua 5.2 compat (lua_objlen)
authorMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 31 Mar 2015 17:41:05 +0000 (19:41 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 31 Mar 2015 17:41:05 +0000 (19:41 +0200)
daemon/bindings.c

index 49a6503ebfd26783752b413067bcbb992474cd5d..66c54cb84f28656180c771878f24492a0edf455a 100644 (file)
@@ -21,6 +21,7 @@
 
 /** @internal Compatibility wrapper for Lua 5.0 - 5.2 */
 #if LUA_VERSION_NUM < 502
+#define lua_len lua_objlen
 #define register_lib(L, name, lib) \
        luaL_openlib((L), (name), (lib), 0)
 #else