]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Add missing #include <memory> in redis_backend.cxx 5960/head
authorHiroshi Murakami <h.murakami@cloudsecure.co.jp>
Tue, 31 Mar 2026 04:55:33 +0000 (13:55 +0900)
committerHiroshi Murakami <h.murakami@cloudsecure.co.jp>
Tue, 31 Mar 2026 04:55:33 +0000 (13:55 +0900)
std::make_unique is used (line 584) but <memory> is not explicitly
included. This causes compilation failures with some compiler/platform
combinations (e.g. gcc-toolset-12 on Rocky Linux 8) where <memory>
is not transitively included by other headers.

src/libstat/backends/redis_backend.cxx

index 9e2867f2639bfd52a9bdb299ae9cc05d90f7c661..9a9b14e513d6ce31c71807ef40f83a05539abdb6 100644 (file)
@@ -30,6 +30,7 @@
 #include <string>
 #include <cstdint>
 #include <vector>
+#include <memory>
 #include <optional>
 
 #define msg_debug_stat_redis(...) rspamd_conditional_debug_fast(nullptr, nullptr,                                                 \