void-packages/srcpkgs/lua54-lgi/patches/lua54.patch
q66 34dbb40587 lgi: add all lua versions, version package, disable checks
Also drop dump-typelib as it doesn't work out of box anyway
and is mostly just for development of lgi itself.
2020-07-01 18:20:24 +02:00

14 lines
391 B
Diff

--- lgi/callable.c
+++ lgi/callable.c
@@ -1233,7 +1233,10 @@ closure_callback (ffi_cif *cif, void *ret, void **args, void *closure_arg)
}
else
{
-#if LUA_VERSION_NUM >= 502
+#if LUA_VERSION_NUM > 503
+ int nres;
+ res = lua_resume (L, NULL, npos, &nres);
+#elif LUA_VERSION_NUM >= 502
res = lua_resume (L, NULL, npos);
#else
res = lua_resume (L, npos);