From: netoholic Date: Fri, 19 Sep 2025 13:17:24 +0000 (+0200) Subject: fix build issues with lua version higher than 5.1 X-Git-Tag: 3.13.1~17^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5625%2Fhead;p=thirdparty%2Frspamd.git fix build issues with lua version higher than 5.1 refer to https://bugs.gentoo.org/963055 I´ve been asked to pass this upstream --- diff --git a/src/libstat/backends/redis_backend.cxx b/src/libstat/backends/redis_backend.cxx index 3a78de1dde..37ce6e9da7 100644 --- a/src/libstat/backends/redis_backend.cxx +++ b/src/libstat/backends/redis_backend.cxx @@ -15,6 +15,9 @@ */ #include "config.h" #include "lua/lua_common.h" +#if LUA_VERSION_NUM >= 502 +# define lua_objlen lua_rawlen +#endif #include "rspamd.h" #include "stat_internal.h" #include "upstream.h"