]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Include algorithm header (#1754) master
authorLinux User <linuxusergd@outlook.com>
Mon, 20 Jul 2026 09:43:22 +0000 (09:43 +0000)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 09:43:22 +0000 (11:43 +0200)
This fixes a build error with clang 23:

error: no member named 'any_of' in namespace 'std'; did you mean '__any_of'?

src/ccache/storage/storage.cpp
src/ccache/util/path.cpp

index a4c5574bde9f7f5e9bbbd10333af8a53651c0e94..7e73b72a7524d081a71daacb0d98a7aba88fdbb4 100644 (file)
@@ -48,6 +48,7 @@
 
 #include <cxxurl/url.hpp>
 
+#include <algorithm>
 #include <cmath>
 #include <memory>
 #include <string>
index e8a7bb718dab810414ce6fb9758380a280fc9cb2..64151c26ad575dddd1868a79e55441b8ba316b31 100644 (file)
@@ -23,6 +23,8 @@
 #include <ccache/util/format.hpp>
 #include <ccache/util/string.hpp>
 
+#include <algorithm>
+
 #ifdef _WIN32
 const char k_dev_null_path[] = "nul:";
 #else