summaryrefslogtreecommitdiff
path: root/databases/redis-devel/files/extra-patch-src-function_lua.c
diff options
context:
space:
mode:
authorYasuhiro Kimura <yasu@FreeBSD.org>2022-02-01 05:35:24 +0900
committerYasuhiro Kimura <yasu@FreeBSD.org>2022-02-01 07:28:57 +0900
commit78ffce71dc93e5d41970909609a49897c4a96e54 (patch)
treebc287eed3176d6f22a76c10bdbda962a4a924c1b /databases/redis-devel/files/extra-patch-src-function_lua.c
parentprint/pecl-pdflib: mark DEPRECATED and set EXPIRATION_DATE (diff)
databases/redis-devel: Update to latest snapshot
Changes: https://github.com/redis/redis/commits/6ca97da
Diffstat (limited to '')
-rw-r--r--databases/redis-devel/files/extra-patch-src-function_lua.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/databases/redis-devel/files/extra-patch-src-function_lua.c b/databases/redis-devel/files/extra-patch-src-function_lua.c
new file mode 100644
index 000000000000..6e4fc624de52
--- /dev/null
+++ b/databases/redis-devel/files/extra-patch-src-function_lua.c
@@ -0,0 +1,13 @@
+--- src/function_lua.c.orig 2022-01-31 19:49:57.000000000 +0900
++++ src/function_lua.c 2022-02-01 05:03:43.442197000 +0900
+@@ -52,6 +52,10 @@
+ #define LIBRARY_API_NAME "__LIBRARY_API__"
+ #define LOAD_TIMEOUT_MS 500
+
++#ifndef lua_unref
++#define lua_unref(L,ref) luaL_unref(L, LUA_REGISTRYINDEX, (ref))
++#endif
++
+ /* Lua engine ctx */
+ typedef struct luaEngineCtx {
+ lua_State *lua;