aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-03 17:17:46 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-03 17:17:46 +0000
commit25a8f48d565a0450aed3417c88dbeeecdad11532 (patch)
tree164c75979afb9cfa21d290f36f2cfaf5fde003e8 /src
parent185e38c9644cbc6e31933aef87ddaf0508e1f01a (diff)
downloadrspamd-25a8f48d565a0450aed3417c88dbeeecdad11532.tar.gz
rspamd-25a8f48d565a0450aed3417c88dbeeecdad11532.zip
[Minor] More Lua 5.4 compatibility
Issue: #3656
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_thread_pool.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_thread_pool.c b/src/lua/lua_thread_pool.c
index 1fa584c51..8220bb3ff 100644
--- a/src/lua/lua_thread_pool.c
+++ b/src/lua/lua_thread_pool.c
@@ -239,7 +239,11 @@ lua_do_resume_full (lua_State *L, gint narg, const gchar *loc)
#if LUA_VERSION_NUM < 502
return lua_resume (L, narg);
#else
+ #if LUA_VERSION_NUM >= 504
+ return lua_resume (L, from, nargs, NULL);
+ #else
return lua_resume (L, NULL, narg);
+ #endif
#endif
}