summaryrefslogtreecommitdiff
path: root/dev-util/roctracer/files/roctracer-10.1.0-libcxx.patch
blob: 5d3d2637c5f321214fadda001dace89dafd0ac1f (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
33
Fix build with libc++

libc++ does not include <functional> and <stdlib.h> transitively.
--- a/src/roctracer/memory_pool.h
+++ b/src/roctracer/memory_pool.h
@@ -28,6 +28,7 @@
 #include <cstdlib>
 #include <cstddef>
 #include <cstring>
+#include <functional>
 #include <future>
 #include <mutex>
 #include <type_traits>
--- a/src/roctracer/roctracer.cpp
+++ b/src/roctracer/roctracer.cpp
@@ -32,6 +32,7 @@
 #include <unistd.h>
 
 #include <atomic>
+#include <functional>
 #include <mutex>
 #include <stack>
 #include <type_traits>
--- a/test/hsa/copy.cpp
+++ b/test/hsa/copy.cpp
@@ -24,6 +24,7 @@
 
 #include <fcntl.h>
 #include <assert.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>