summaryrefslogtreecommitdiffstats
path: root/chromium/build/patches/chromium_madv_free.patch
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-09-07 11:10:18 +0000
committer Eric Hameleers <alien@slackware.com>2016-09-07 11:10:18 +0000
commita97d911c9f6f2b481641dcf821313b1bf94dd2ab (patch)
tree8f6066e2f5e450022da90cb423c05c3f150f1635 /chromium/build/patches/chromium_madv_free.patch
parent433d29fecc8dd3a014736bc3cc9f4ac190ae1bc9 (diff)
downloadasb-a97d911c9f6f2b481641dcf821313b1bf94dd2ab.tar.gz
asb-a97d911c9f6f2b481641dcf821313b1bf94dd2ab.tar.xz
Initial revision
Diffstat (limited to 'chromium/build/patches/chromium_madv_free.patch')
-rw-r--r--chromium/build/patches/chromium_madv_free.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/chromium/build/patches/chromium_madv_free.patch b/chromium/build/patches/chromium_madv_free.patch
new file mode 100644
index 00000000..2867c796
--- /dev/null
+++ b/chromium/build/patches/chromium_madv_free.patch
@@ -0,0 +1,15 @@
+diff -up chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.madv_free chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
+--- chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.madv_free 2016-08-15 13:07:29.279655676 -0400
++++ chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp 2016-08-15 13:08:38.447317416 -0400
+@@ -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