]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Add missing #includes
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 19 Feb 2024 19:10:02 +0000 (20:10 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 19 Feb 2024 19:21:29 +0000 (20:21 +0100)
src/InodeCache.cpp
src/core/FileRecompressor.cpp
src/core/StatsLog.cpp
src/util/DirEntry.cpp
src/util/MemoryMap.cpp

index 1f86f52237dd251c6c7d063757ba48dbd693c5df..229468b35f26332cf127df74b444d7c4dd127b7c 100644 (file)
@@ -49,6 +49,7 @@
 #endif
 
 #include <atomic>
+#include <thread>
 #include <type_traits>
 #include <vector>
 
index c2dedf8409c9ff4411611041dfea14b1e2583e24..77c255059a75460c03572e9403e8e93fd34e1201 100644 (file)
@@ -24,6 +24,7 @@
 #include <core/exceptions.hpp>
 #include <util/expected.hpp>
 #include <util/file.hpp>
+#include <util/fmtmacros.hpp>
 
 using util::DirEntry;
 
index 5d82f01bfdfb5e0f0eb82fee4bc43bbaaadb52c8..6fda850f07932ed6496a8f1a1a07b8e9c073a238 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2021-2023 Joel Rosdahl and other contributors
+// Copyright (C) 2021-2024 Joel Rosdahl and other contributors
 //
 // See doc/AUTHORS.adoc for a complete list of contributors.
 //
@@ -23,6 +23,7 @@
 #include <util/fmtmacros.hpp>
 #include <util/logging.hpp>
 
+#include <cstring>
 #include <fstream>
 
 namespace core {
index 1f4388f6f593932d2976d293fe693ec6aafdd4fe..32026c8d2e7be192deddd79da0956378fd6c508b 100644 (file)
@@ -29,6 +29,8 @@
 #  include <third_party/win32/winerror_to_errno.h>
 #endif
 
+#include <cstring>
+
 using pstr = util::PathString;
 
 namespace {
index c8474508d6ad63c3110fd46e1dc929e9e12dd7fd..05840ad78c21cbbd6663e2fe1bcccdc325122f02 100644 (file)
@@ -21,6 +21,8 @@
 #include <util/fmtmacros.hpp>
 #include <util/wincompat.hpp>
 
+#include <cstring>
+
 #ifndef _WIN32
 #  include <sys/mman.h>
 #endif