SHA256
10
0
forked from pool/lua-mpack
Files
lua-mpack/luajit-build.patch
Matěj Cepl 348da6a4b4 Make the package buildable with LuaJIT.
Removed upstreamed patches:
  - lua51-mpack-fix-compilation.patch
  - lua51-mpack-fix-gcc7.patch
Add luajit-build.patch to make the source compatible with Lua
  API < 5.2.
2025-10-13 16:06:13 +02:00

20 lines
531 B
Diff

---
lmpack.c | 4 ++++
1 file changed, 4 insertions(+)
Index: libmpack-lua-1.0.12/lmpack.c
===================================================================
--- libmpack-lua-1.0.12.orig/lmpack.c 2024-02-07 00:28:09.000000000 +0100
+++ libmpack-lua-1.0.12/lmpack.c 2025-10-13 15:00:35.793539104 +0200
@@ -54,6 +54,10 @@
#define luaL_reg luaL_Reg
#endif
+#if LUA_VERSION_NUM < 502
+# define luaL_reg luaL_Reg
+#endif
+
#if LUA_VERSION_NUM > 501
#ifndef luaL_register
#define luaL_register(L,n,f) luaL_setfuncs(L,f,0)