summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/selinux/android-tools/android-tools/core/0015-Use-namespace-std-to-compile-libbacktrace.patch
blob: d8fee6655e0288bce505b89ff87f0d7a955d2663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 19a16829ef7b7ffd6466b9b90585d667a1663969 Mon Sep 17 00:00:00 2001
From: Etienne Cordonnier <ecordonnier@snap.com>
Date: Fri, 3 Mar 2023 13:43:50 +0100
Subject: [PATCH 15/15] Use namespace std to compile libbacktrace

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
---
 libunwindstack/include/unwindstack/DwarfMemory.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libunwindstack/include/unwindstack/DwarfMemory.h b/libunwindstack/include/unwindstack/DwarfMemory.h
index 244c0e12..0a3fefeb 100644
--- a/libunwindstack/include/unwindstack/DwarfMemory.h
+++ b/libunwindstack/include/unwindstack/DwarfMemory.h
@@ -23,7 +23,7 @@ namespace unwindstack {
 
 // Forward declarations.
 class Memory;
-
+using namespace std;
 class DwarfMemory {
  public:
   DwarfMemory(Memory* memory) : memory_(memory) {}
-- 
2.36.1.vfs.0.0