tools/ccache: update to 4.6.2
[openwrt/staging/hauke.git] / tools / ccache / patches / 110-musl-gcc12.patch
1 From a69bdc87d7a4a7b019c4086cb007a0b48a007f4a Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Thu, 25 Aug 2022 12:36:18 -0700
4 Subject: [PATCH] fix: Fix build with musl when using GCC 12 (#1145)
5
6 (cherry picked from commit bb72cc26bc91bc56567dbef608088a9437f836bb)
7 ---
8 src/Config.hpp | 2 ++
9 src/core/Statistics.hpp | 1 +
10 2 files changed, 3 insertions(+)
11
12 --- a/src/Config.hpp
13 +++ b/src/Config.hpp
14 @@ -25,6 +25,8 @@
15
16 #include "third_party/nonstd/optional.hpp"
17
18 +#include <sys/types.h>
19 +
20 #include <cstdint>
21 #include <functional>
22 #include <limits>
23 --- a/src/core/Statistics.hpp
24 +++ b/src/core/Statistics.hpp
25 @@ -22,6 +22,7 @@
26
27 #include <cstdint>
28 #include <string>
29 +#include <ctime>
30 #include <unordered_map>
31 #include <vector>
32