aboutsummaryrefslogtreecommitdiffstats
path: root/community/chromium/unset-madv_free.patch
blob: f748179fc90344d54d374f18f267f3f9374d3ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
+++ third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
@@ -41,6 +41,11 @@
 #include <errno.h>
 #include <sys/mman.h>
 
+#if OS(LINUX) && defined(MADV_FREE)
+// Added in Linux 4.5, but it breaks the sandbox.
+#undef MADV_FREE
+#endif
+
 #ifndef MADV_FREE
 #define MADV_FREE MADV_DONTNEED
 #endif