mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
lua: fix build error due to LUA_GLOBALSINDEX usage
lua 5.2 changed API, LUA_GLOBALSINDEX is no longer available. http://www.lua.org/manual/5.2/manual.html#8.3 Signed-off-by: Olaf Hering <olaf@aepfle.de>
This commit is contained in:
committed by
Richard W.M. Jones
parent
12acff5f56
commit
e987c038ea
@@ -723,7 +723,7 @@ push_int64_array (lua_State *L, const int64_t *array, size_t len)
|
||||
static void
|
||||
print_any (lua_State *L, int index, FILE *out)
|
||||
{
|
||||
lua_getfield (L, LUA_GLOBALSINDEX, \"tostring\");
|
||||
lua_getglobal(L, \"tostring\");
|
||||
lua_pushvalue (L, index >= 0 ? index : index-1);
|
||||
lua_call (L, 1, 1);
|
||||
fprintf (out, \"%%s\", luaL_checkstring (L, -1));
|
||||
|
||||
Reference in New Issue
Block a user