summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/selinux/android-tools/android-tools/use_name_space_std_to_compile_libbacktrace.patch
blob: 079ade46b08a06444c2fde0cb7b4f87da213ef03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
To Fix the below error

 In file included from libunwindstack/DwarfSection.cpp:21:
| libunwindstack/include/unwindstack/DwarfMemory.h:32:29: error: unknown type name 'size_t'; did you mean 'std::size_t'?
|   bool ReadBytes(void* dst, size_t num_bytes);
|                             ^~~~~~
|                             std::size_t

--- ./system/core/libunwindstack/include/unwindstack/DwarfMemory.h	2021-05-22 00:52:15.132452862 +0000
+++ ./system/core/libunwindstack/include/unwindstack/DwarfMemory.h	2021-05-22 00:53:09.793416724 +0000
@@ -23,7 +23,7 @@
 
 // Forward declarations.
 class Memory;
-
+using namespace std;
 class DwarfMemory {
  public:
   DwarfMemory(Memory* memory) : memory_(memory) {}