Advertisement
Guest User

Nomius - glibc

a guest
Jan 4th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.61 KB | None | 0 0
  1. description: MADV_FREE is newly defined in glibc 2.24, but currently unsupported by webkit, so undefine it
  2. author: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
  3. origin: http://code.qt.io/cgit/qt/qtwebengine-chromium.git/commit/?h=49-based&id=b12ffcd411d4776f7120ccecb3be34344d930d2b
  4.  
  5. --- a/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
  6. +++ b/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
  7. @@ -41,6 +41,10 @@
  8.  #include <errno.h>
  9.  #include <sys/mman.h>
  10.  
  11. +#if OS(LINUX) && defined(MADV_FREE)
  12. +#undef MADV_FREE
  13. +#endif
  14. +
  15.  #ifndef MADV_FREE
  16.  #define MADV_FREE MADV_DONTNEED
  17.  #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement