From 2aad11ed8dfd5206588df893846c474a9a7463bc Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Wed, 25 Sep 2024 18:00:33 -0500 Subject: Add LUA_OK to luajit patch --- luarocks.exe.c.jit.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 @@ --- luarocks.exe.c 2024-09-23 15:25:00.870448000 -0500 +++ luarocks.exe.c 2024-09-23 15:27:52.663551300 -0500 +@@ -17,6 +17,33 @@ + #define getprogname() + #endif + ++/* LUA_OK defined in lua 5.2+ */ ++#ifndef LUA_OK ++#define LUA_OK 0 ++#endif ++ + static int registry_key; + + /* fatal error, from srlua */ @@ -38282,7 +38309,9 @@ lua_pop(L, 1); lua_getfield(L, -1, "loaders"); /* table table.insert package package.loaders */ -- cgit v1.2.3-55-g6feb