aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-09-25 18:00:33 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-09-25 18:00:33 -0500
commit2aad11ed8dfd5206588df893846c474a9a7463bc (patch)
treed44799c14bb3b9f910b69ce52554a030d5749f88
parent9d8f40e12c9374a1c916fe5a5d20023f43b99b94 (diff)
downloadluarocks-packaging-2aad11ed8dfd5206588df893846c474a9a7463bc.tar.gz
luarocks-packaging-2aad11ed8dfd5206588df893846c474a9a7463bc.tar.bz2
luarocks-packaging-2aad11ed8dfd5206588df893846c474a9a7463bc.zip
Add LUA_OK to luajit patch
-rw-r--r--luarocks.exe.c.jit.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/luarocks.exe.c.jit.patch b/luarocks.exe.c.jit.patch
index 3ba5e87..43a1891 100644
--- a/luarocks.exe.c.jit.patch
+++ b/luarocks.exe.c.jit.patch
@@ -1,5 +1,17 @@
1--- luarocks.exe.c 2024-09-23 15:25:00.870448000 -0500 1--- luarocks.exe.c 2024-09-23 15:25:00.870448000 -0500
2+++ luarocks.exe.c 2024-09-23 15:27:52.663551300 -0500 2+++ luarocks.exe.c 2024-09-23 15:27:52.663551300 -0500
3@@ -17,6 +17,33 @@
4 #define getprogname()
5 #endif
6
7+/* LUA_OK defined in lua 5.2+ */
8+#ifndef LUA_OK
9+#define LUA_OK 0
10+#endif
11+
12 static int registry_key;
13
14 /* fatal error, from srlua */
3@@ -38282,7 +38309,9 @@ 15@@ -38282,7 +38309,9 @@
4 lua_pop(L, 1); 16 lua_pop(L, 1);
5 lua_getfield(L, -1, "loaders"); /* table table.insert package package.loaders */ 17 lua_getfield(L, -1, "loaders"); /* table table.insert package package.loaders */