summaryrefslogtreecommitdiffstats
path: root/external/pdfium/AndroidNDK19.patch.1
blob: f0d926f555d8b32016ec75d3bcee389c8cfcd33d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff -Naur pdfium.org/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h
--- pdfium.org/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h	2021-05-05 23:01:25.705057178 +0200
+++ pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h	2021-05-05 23:06:52.194081762 +0200
@@ -15,6 +15,12 @@
 #endif
 #if BUILDFLAG(IS_ANDROID)
 #include <sys/prctl.h>
+#ifndef PR_SET_VMA
+#define PR_SET_VMA 0x53564d41
+#endif
+#ifndef PR_SET_VMA_ANON_NAME
+#define PR_SET_VMA_ANON_NAME 0
+#endif
 #endif
 #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
 #include <sys/resource.h>