forked from pool/lua-lgi
Accepting request 819727 from home:gmbr3:testing
- Added lua54.patch to fix building with Lua 5.4 OBS-URL: https://build.opensuse.org/request/show/819727 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lgi?expand=0&rev=22
This commit is contained in:
16
lua54.patch
Normal file
16
lua54.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff --git a/lgi/callable.c b/lgi/callable.c
|
||||
index e96d3af..3234b64 100644
|
||||
--- a/lgi/callable.c
|
||||
+++ b/lgi/callable.c
|
||||
@@ -1355,7 +1355,10 @@ closure_callback (ffi_cif *cif, void *ret, void **args, void *closure_arg)
|
||||
}
|
||||
else
|
||||
{
|
||||
-#if LUA_VERSION_NUM >= 502
|
||||
+#if LUA_VERSION_NUM >= 504
|
||||
+ int nresults;
|
||||
+ res = lua_resume (L, NULL, npos, &nresults);
|
||||
+#elif LUA_VERSION_NUM >= 502
|
||||
res = lua_resume (L, NULL, npos);
|
||||
#else
|
||||
res = lua_resume (L, npos);
|
||||
Reference in New Issue
Block a user