freebsd-ports/databases/redis/files/extra-patch-src-function_lua.c
Yasuhiro Kimura 27e36df36a databases/redis: Update to 7.0.0
* Mark BROKEN if any of external lua library options are
  enabled. Upstream add new APIs to bundled lua library and use them
  in source code of redis. This makes it impossible to compile and
  link redis with external lua libraries. According to the commit
  message of upstream repository they took the code of new API from
  the repository of lua. It means linking with external lua libraries
  may get possible again if they are updated. So mark BROKEN rather
  than remove these options.
* Update CONFLICTS of databases/redis*.
* Switch to DISTVERSION.
* Pet portlint and portclippy.
* Tidy up Makefile with portfmt.

ChangeLog:	https://github.com/redis/redis/releases/tag/7.0.0
Security:	cc42db1c-c65f-11ec-ad96-0800270512f4
2022-04-28 11:19:08 +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;