summarylogtreecommitdiffstats
path: root/chromium-unset-madv_free.patch
blob: 33f5a30420bea6444ef460ab891df17be6dc750b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
+++ b/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