summaryrefslogtreecommitdiff
path: root/libchrome_tools/patch/valgrind.patch
blob: 7a7722c3a87a6130d146c77bda0eba6dae910540 (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
# On Android, use system valgrind, instead of ones checked in to the Chromium
# repository.

--- a/base/third_party/valgrind/memcheck.h
+++ b/base/third_party/valgrind/memcheck.h
@@ -1,4 +1,6 @@
-
+#ifdef ANDROID
+  #include "memcheck/memcheck.h"
+#else
 /*
    ----------------------------------------------------------------
 
@@ -277,3 +279,4 @@ typedef
 
 #endif
 
+#endif
--- a/base/third_party/valgrind/valgrind.h
+++ b/base/third_party/valgrind/valgrind.h
@@ -1,3 +1,6 @@
+#ifdef ANDROID
+  #include "include/valgrind.h"
+#else
 /* -*- c -*-
    ----------------------------------------------------------------
 
@@ -4790,3 +4793,5 @@ VALGRIND_PRINTF_BACKTRACE(const char *fo
 #undef PLAT_ppc64_aix5
 
 #endif   /* __VALGRIND_H */
+
+#endif