瀏覽代碼

[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 月之前
父節點
當前提交
249939dfcb
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1
    0
      src/libmime/mime_string.hxx
  2. 1
    0
      src/libstat/backends/http_backend.cxx

+ 1
- 0
src/libmime/mime_string.hxx 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存