Skip to content

Commit

Permalink
Bug 5343: Fix GCC v14 not finding std::find() (squid-cache#1672)
Browse files Browse the repository at this point in the history
    Reply.cc:198: error: no matching function for call to find(...)

The required STL header was missed in 2023 commit 27c3677.
  • Loading branch information
kinkie authored and squid-anubis committed Feb 13, 2024
1 parent 39b5a58 commit 0002264
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CachePeers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "CachePeers.h"
#include "SquidConfig.h"

#include <algorithm>

CachePeer &
CachePeers::nextPeerToPing(const size_t pollIndex)
{
Expand Down
2 changes: 2 additions & 0 deletions src/ResolvedPeers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "ResolvedPeers.h"
#include "SquidConfig.h"

#include <algorithm>

ResolvedPeers::ResolvedPeers()
{
if (Config.forward_max_tries > 0)
Expand Down
2 changes: 2 additions & 0 deletions src/acl/AtStepData.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "sbuf/Stream.h"
#include "wordlist.h"

#include <algorithm>

static inline const char *
StepName(const XactionStep xstep)
{
Expand Down
2 changes: 2 additions & 0 deletions src/auth/SchemesConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include "fatal.h"
#include "parser/Tokenizer.h"

#include <algorithm>

static void
addUnique(const SBuf &scheme, std::vector<SBuf> &vec)
{
Expand Down
1 change: 1 addition & 0 deletions src/cache_cf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
#include "snmp.h"
#endif

#include <algorithm>
#if HAVE_GLOB_H
#include <glob.h>
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/helper/Reply.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include "rfc1738.h"
#include "SquidString.h"

#include <algorithm>

Helper::Reply::Reply() :
result(Helper::Unknown)
{
Expand Down
2 changes: 2 additions & 0 deletions src/sbuf/List.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "sbuf/Algorithms.h"
#include "sbuf/List.h"

#include <algorithm>

bool
IsMember(const SBufList & sl, const SBuf &S, const SBufCaseSensitive case_sensitive)
{
Expand Down
2 changes: 2 additions & 0 deletions src/security/KeyData.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include "ssl/bio.h"
#include "ssl/gadgets.h"

#include <algorithm>

/// load the signing certificate and its chain, if any, from certFile
/// \return true if the signing certificate was obtained
bool
Expand Down

0 comments on commit 0002264

Please sign in to comment.