]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Fix build with musl when using GCC 12 (#1145)
authorKhem Raj <raj.khem@gmail.com>
Thu, 25 Aug 2022 19:36:18 +0000 (12:36 -0700)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 25 Aug 2022 19:43:45 +0000 (21:43 +0200)
(cherry picked from commit bb72cc26bc91bc56567dbef608088a9437f836bb)

src/Config.hpp
src/core/Statistics.hpp

index a9e08eca3f23c5213dd5b6014c01388f3b4c9f93..9e7af40c8fdeec4d6132c3aa7d9e6553c3a527e1 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "third_party/nonstd/optional.hpp"
 
+#include <sys/types.h>
+
 #include <cstdint>
 #include <functional>
 #include <limits>
index 54f32e9c67e79ec4cedd8a25cf830dd481add906..eb80e1caed5bf799515880c4ca5f160d367e59b0 100644 (file)
@@ -21,6 +21,7 @@
 #include <core/StatisticsCounters.hpp>
 
 #include <cstdint>
+#include <ctime>
 #include <string>
 #include <unordered_map>
 #include <vector>