]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/engine: compat for Lua < 5.2
authorMarek Vavruša <marek.vavrusa@nic.cz>
Mon, 25 May 2015 13:54:26 +0000 (15:54 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Mon, 25 May 2015 13:54:26 +0000 (15:54 +0200)
daemon/engine.c

index e37648456c3938dfd25fad1eb0739cdd08f5f335..aad178d73ac93a09c5c4a5733b118dfdd25ee1e0 100644 (file)
 #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.
  */