diff options
Diffstat (limited to 'dynamic-layers/selinux/android-tools/android-tools/core/0015-Use-namespace-std-to-compile-libbacktrace.patch')
-rw-r--r-- | dynamic-layers/selinux/android-tools/android-tools/core/0015-Use-namespace-std-to-compile-libbacktrace.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dynamic-layers/selinux/android-tools/android-tools/core/0015-Use-namespace-std-to-compile-libbacktrace.patch b/dynamic-layers/selinux/android-tools/android-tools/core/0015-Use-namespace-std-to-compile-libbacktrace.patch new file mode 100644 index 0000000..d8fee66 --- /dev/null +++ b/dynamic-layers/selinux/android-tools/android-tools/core/0015-Use-namespace-std-to-compile-libbacktrace.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 19a16829ef7b7ffd6466b9b90585d667a1663969 Mon Sep 17 00:00:00 2001 | ||
2 | From: Etienne Cordonnier <ecordonnier@snap.com> | ||
3 | Date: Fri, 3 Mar 2023 13:43:50 +0100 | ||
4 | Subject: [PATCH 15/15] Use namespace std to compile libbacktrace | ||
5 | |||
6 | To Fix the below error | ||
7 | |||
8 | In file included from libunwindstack/DwarfSection.cpp:21: | ||
9 | | libunwindstack/include/unwindstack/DwarfMemory.h:32:29: error: unknown type name 'size_t'; did you mean 'std::size_t'? | ||
10 | | bool ReadBytes(void* dst, size_t num_bytes); | ||
11 | | ^~~~~~ | ||
12 | | std::size_t | ||
13 | --- | ||
14 | libunwindstack/include/unwindstack/DwarfMemory.h | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/libunwindstack/include/unwindstack/DwarfMemory.h b/libunwindstack/include/unwindstack/DwarfMemory.h | ||
18 | index 244c0e12..0a3fefeb 100644 | ||
19 | --- a/libunwindstack/include/unwindstack/DwarfMemory.h | ||
20 | +++ b/libunwindstack/include/unwindstack/DwarfMemory.h | ||
21 | @@ -23,7 +23,7 @@ namespace unwindstack { | ||
22 | |||
23 | // Forward declarations. | ||
24 | class Memory; | ||
25 | - | ||
26 | +using namespace std; | ||
27 | class DwarfMemory { | ||
28 | public: | ||
29 | DwarfMemory(Memory* memory) : memory_(memory) {} | ||
30 | -- | ||
31 | 2.36.1.vfs.0.0 | ||
32 | |||