From 62f2b185868ca2081db05214f41d2f228757e3fd Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 10 May 2015 01:02:12 +0200 Subject: fixed build for 5.1 --- src/l_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/l_util.c b/src/l_util.c index 6f55000..f261178 100644 --- a/src/l_util.c +++ b/src/l_util.c @@ -45,7 +45,7 @@ #include "l_util.h" #if LUA_VERSION_NUM < 502 -#define lua_objlen lua_rawlen +#define lua_rawlen lua_objlen #endif static int get_fd(lua_State *L) @@ -468,6 +468,7 @@ LUALIB_API int luaopen_util(lua_State *L) #else luaL_register(L, LUA_UTILLIBNAME, util_funcs); #endif + lua_newtable(L); lua_setfield(L, -2, LUA_UTILCHLIDRENNAME); return 1; } -- cgit v1.2.3