commit 1f4b452: [Minor] Unbreak generic luajit build
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu May 2 08:00:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-05-02 08:56:23 +0100
URL: https://github.com/rspamd/rspamd/commit/1f4b45283efc006f2f5dd301b62aca6df540f0be (HEAD -> master)
[Minor] Unbreak generic luajit build
---
src/lua/lua_common.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index 5f25d837d..63f898574 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -911,7 +911,12 @@ rspamd_lua_init (bool wipe_mem)
lua_State *L;
if (wipe_mem) {
+#ifdef WITH_LUAJIT
+ /* TODO: broken on luajit without GC64 */
+ L = luaL_newstate ();
+#else
L = lua_newstate (rspamd_lua_wipe_realloc, NULL);
+#endif
}
else {
L = luaL_newstate ();
More information about the Commits
mailing list