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

@@ -17,6 +17,7 @@
#define RSPAMD_MIME_STRING_HXX
#pragma once

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

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

@@ -20,6 +20,7 @@
#include "libserver/mempool_vars_internal.h"
#include "upstream.h"
#include "contrib/ankerl/unordered_dense.h"
#include <algorithm>
#include <vector>

namespace rspamd::stat::http {

Loading…
Cancel
Save