From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Tue, 13 Feb 2024 11:14:02 +0000 (+0000) Subject: Bug 5343: Fix GCC v14 not finding std::find() (#1672) X-Git-Tag: SQUID_6_8~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6ff3200ef6b343b6af410f68d9cf7fce9f98fa8;p=thirdparty%2Fsquid.git Bug 5343: Fix GCC v14 not finding std::find() (#1672) Reply.cc:198: error: no matching function for call to find(...) The required STL header was missed in 2023 commit 27c3677. --- diff --git a/src/ResolvedPeers.cc b/src/ResolvedPeers.cc index a8251d66c0..84016e07c7 100644 --- a/src/ResolvedPeers.cc +++ b/src/ResolvedPeers.cc @@ -13,6 +13,8 @@ #include "ResolvedPeers.h" #include "SquidConfig.h" +#include + ResolvedPeers::ResolvedPeers() { if (Config.forward_max_tries > 0) diff --git a/src/acl/AtStepData.cc b/src/acl/AtStepData.cc index e106718e5b..4d39310d8f 100644 --- a/src/acl/AtStepData.cc +++ b/src/acl/AtStepData.cc @@ -16,6 +16,8 @@ #include "sbuf/Stream.h" #include "wordlist.h" +#include + static inline const char * StepName(const XactionStep xstep) { diff --git a/src/auth/SchemesConfig.cc b/src/auth/SchemesConfig.cc index c97b423ac1..052340b58d 100644 --- a/src/auth/SchemesConfig.cc +++ b/src/auth/SchemesConfig.cc @@ -11,6 +11,8 @@ #include "fatal.h" #include "parser/Tokenizer.h" +#include + static void addUnique(const SBuf &scheme, std::vector &vec) { diff --git a/src/cache_cf.cc b/src/cache_cf.cc index e4a296005f..cc1cbc556a 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -92,6 +92,7 @@ #include "snmp.h" #endif +#include #if HAVE_GLOB_H #include #endif diff --git a/src/helper/Reply.cc b/src/helper/Reply.cc index 083672cfa7..2d9792f58c 100644 --- a/src/helper/Reply.cc +++ b/src/helper/Reply.cc @@ -17,6 +17,8 @@ #include "rfc1738.h" #include "SquidString.h" +#include + Helper::Reply::Reply() : result(Helper::Unknown) { diff --git a/src/sbuf/List.cc b/src/sbuf/List.cc index acc4fc0657..1e095c1fcb 100644 --- a/src/sbuf/List.cc +++ b/src/sbuf/List.cc @@ -10,6 +10,8 @@ #include "sbuf/Algorithms.h" #include "sbuf/List.h" +#include + bool IsMember(const SBufList & sl, const SBuf &S, const SBufCaseSensitive case_sensitive) { diff --git a/src/security/KeyData.cc b/src/security/KeyData.cc index f32b9bd3ab..0ffd51b5aa 100644 --- a/src/security/KeyData.cc +++ b/src/security/KeyData.cc @@ -15,6 +15,8 @@ #include "ssl/bio.h" #include "ssl/gadgets.h" +#include + /// load the signing certificate and its chain, if any, from certFile /// \return true if the signing certificate was obtained bool