ports/databases/redis70/files/extra-patch-src-function_lua.c
Yasuhiro Kimura cc25511077 databases/redis70: Copy from databases/redis
Copy databases/redis to databases/redis70 as preparation for updating
the former to 7.2.
2023-08-17 12:29:02 +09:00

13 lines
345 B
C

--- src/function_lua.c.orig 2022-01-31 10:49:57 UTC
+++ src/function_lua.c
@@ -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;