chromium: fix "Aw, snap!" after glibc 2.24 upgrade

See https://bugzilla.redhat.com/show_bug.cgi?id=1361157#c8
cc @domenkozar @aszlig

obadz cd063d77 08933f8a

+15
+1
pkgs/applications/networking/browsers/chromium/common.nix
··· 128 128 129 129 patches = [ 130 130 ./patches/widevine.patch 131 + ./patches/glibc-2.24.patch 131 132 (if versionOlder version "52.0.0.0" 132 133 then ./patches/nix_plugin_paths_50.patch 133 134 else ./patches/nix_plugin_paths_52.patch)
+14
pkgs/applications/networking/browsers/chromium/patches/glibc-2.24.patch
··· 1 + --- old/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp 2016-08-03 21:02:37.000000000 +0200 2 + +++ new/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp 2016-08-14 10:59:51.395354850 +0200 3 + @@ -41,6 +41,11 @@ 4 + #include <errno.h> 5 + #include <sys/mman.h> 6 + 7 + +#if OS(LINUX) && defined(MADV_FREE) 8 + +// Added in Linux 4.5, but we don't want to depend on 4.5 at runtime 9 + +#undef MADV_FREE 10 + +#endif 11 + + 12 + #ifndef MADV_FREE 13 + #define MADV_FREE MADV_DONTNEED 14 + #endif