From 1f4b45283efc006f2f5dd301b62aca6df540f0be Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 2 May 2019 08:56:23 +0100 Subject: [PATCH] [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 (); -- 2.39.5