From: Petr Vaněk Date: Wed, 1 Nov 2023 10:28:53 +0000 (+0100) Subject: [Minor] Add missing include for gcc 14 X-Git-Tag: 3.8.0~95^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4675%2Fhead;p=thirdparty%2Frspamd.git [Minor] Add missing include for gcc 14 This commit addresses a compilation issue when using GCC 14. According to GCC 14's porting guide [1], some C++ Standard Library headers no longer include other headers they used to use internally. Specifically, must now be explicitly included. [1] https://gcc.gnu.org/gcc-14/porting_to.html See-also: https://bugs.gentoo.org/916438 Signed-off-by: Petr Vaněk --- diff --git a/src/libmime/mime_string.hxx b/src/libmime/mime_string.hxx index 583a2c9037..7476816c6a 100644 --- a/src/libmime/mime_string.hxx +++ b/src/libmime/mime_string.hxx @@ -17,6 +17,7 @@ #define RSPAMD_MIME_STRING_HXX #pragma once +#include #include #include #include diff --git a/src/libstat/backends/http_backend.cxx b/src/libstat/backends/http_backend.cxx index 3b2e3efe02..075e50870d 100644 --- a/src/libstat/backends/http_backend.cxx +++ b/src/libstat/backends/http_backend.cxx @@ -20,6 +20,7 @@ #include "libserver/mempool_vars_internal.h" #include "upstream.h" #include "contrib/ankerl/unordered_dense.h" +#include #include namespace rspamd::stat::http {