From: Thomas Moschny Date: Fri, 23 Jan 2015 21:00:40 +0000 (+0100) Subject: Small fix for Lua 5.3 compatibility. X-Git-Tag: lxc-1.1.0.rc2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67f69573777d35b291c853733752c2c079bf14e8;p=thirdparty%2Flxc.git Small fix for Lua 5.3 compatibility. Signed-off-by: Thomas Moschny Acked-by: Stéphane Graber --- diff --git a/src/lua-lxc/core.c b/src/lua-lxc/core.c index 2e073d829..630a3e4ea 100644 --- a/src/lua-lxc/core.c +++ b/src/lua-lxc/core.c @@ -38,6 +38,10 @@ #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