]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Small fix for Lua 5.3 compatibility.
authorThomas Moschny <thomas.moschny@gmx.de>
Fri, 23 Jan 2015 21:00:40 +0000 (22:00 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Sat, 24 Jan 2015 21:44:55 +0000 (16:44 -0500)
Signed-off-by: Thomas Moschny <thomas.moschny@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lua-lxc/core.c

index 2e073d8290b9ab12e1583b12ce9e9d7d55728738..630a3e4ea64bd55a3c8febaa305e1c0bd6064579 100644 (file)
 #define luaL_checkunsigned(L,n) luaL_checknumber(L,n)
 #endif
 
+#if LUA_VERSION_NUM >= 503
+#define luaL_checkunsigned(L,n) ((lua_Unsigned)luaL_checkinteger(L,n))
+#endif
+
 #ifdef NO_CHECK_UDATA
 #define checkudata(L,i,tname)  lua_touserdata(L, i)
 #else