--- third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h.1 2020-03-14 13:50:31.561072287 +0000 +++ third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h 2020-03-14 13:50:51.205996015 +0000 @@ -184,7 +184,7 @@ // performance benefits unclear. // // Therefore, we just do the simple thing: MADV_DONTNEED. - CHECK(!madvise(address, length, MADV_DONTNEED)); + CHECK(!posix_madvise(address, length, POSIX_MADV_DONTNEED)); #endif } --- core/fxcrt/cfx_fileaccess_posix.h.1 2020-03-14 14:22:47.915686341 +0000 +++ core/fxcrt/cfx_fileaccess_posix.h 2020-03-14 14:23:12.768876421 +0000 @@ -12,7 +12,7 @@ #include "core/fxcrt/fx_system.h" #if _FX_PLATFORM_ != _FX_PLATFORM_LINUX_ && !defined(OS_MACOSX) && \ - !defined(OS_ANDROID) + !defined(OS_ANDROID) && !defined(OS_SOLARIS) #error "Included on the wrong platform" #endif