blob: 80e62e854c82c9abb27cb2a98294a88284a30414 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
https://bugzilla.redhat.com/show_bug.cgi?id=1361157
--- 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
|