SHA256
10
0
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:
2020-07-09 13:52:34 +00:00
committed by Git OBS Bridge
parent 74476faf23
commit 0e1e1e85de
3 changed files with 23 additions and 1 deletions

16
lua54.patch Normal file
View 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);