Browse Source

[Minor] Add missing <algorithm> 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,
<algorithm> 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 <arkamar@atlas.cz>
tags/3.8.0
Petr Vaněk 6 months ago
parent
commit
249939dfcb
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      src/libmime/mime_string.hxx
  2. 1
    0
      src/libstat/backends/http_backend.cxx

+ 1
- 0
src/libmime/mime_string.hxx View File

#define RSPAMD_MIME_STRING_HXX #define RSPAMD_MIME_STRING_HXX
#pragma once #pragma once


#include <algorithm>
#include <string> #include <string>
#include <string_view> #include <string_view>
#include <memory> #include <memory>

+ 1
- 0
src/libstat/backends/http_backend.cxx View File

#include "libserver/mempool_vars_internal.h" #include "libserver/mempool_vars_internal.h"
#include "upstream.h" #include "upstream.h"
#include "contrib/ankerl/unordered_dense.h" #include "contrib/ankerl/unordered_dense.h"
#include <algorithm>
#include <vector> #include <vector>


namespace rspamd::stat::http { namespace rspamd::stat::http {

Loading…
Cancel
Save