]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Unbreak generic luajit build
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 May 2019 07:56:23 +0000 (08:56 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 May 2019 07:56:23 +0000 (08:56 +0100)
src/lua/lua_common.c

index 5f25d837de42dcbc368e8e7dd3a97c6eba8ee77a..63f8985744cf92b29b29da4d89a8987ef36b21e7 100644 (file)
@@ -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 ();