From 3de1bf3abd6d7ef1f948bbceb7c9b123e0ccff2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20Van=C4=9Bk?= Date: Wed, 1 Nov 2023 11:28:53 +0100 Subject: [PATCH] [Minor] Add missing include for gcc 14 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/libmime/mime_string.hxx | 1 + src/libstat/backends/http_backend.cxx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libmime/mime_string.hxx b/src/libmime/mime_string.hxx index 583a2c903..7476816c6 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 3b2e3efe0..075e50870 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 { -- 2.39.5