diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-02 08:56:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-02 08:56:23 +0100 |
commit | 1f4b45283efc006f2f5dd301b62aca6df540f0be (patch) | |
tree | 9e4e1e179112640e95dcec37206b0a9dc298a6f1 /src/lua/lua_common.c | |
parent | 59cfa81d517303d6159e5abb24db26bef1104c21 (diff) | |
download | rspamd-1f4b45283efc006f2f5dd301b62aca6df540f0be.tar.gz rspamd-1f4b45283efc006f2f5dd301b62aca6df540f0be.zip |
[Minor] Unbreak generic luajit build
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r-- | src/lua/lua_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 (); |