diff --git base/allocator/partition_allocator/partition_alloc_config.h base/allocator/partition_allocator/partition_alloc_config.h index 254476f9eaa4..1cdddaa3b93f 100644 --- base/allocator/partition_allocator/partition_alloc_config.h +++ base/allocator/partition_allocator/partition_alloc_config.h @@ -36,9 +36,12 @@ static_assert(sizeof(void*) != 8, ""); #if defined(PA_HAS_64_BITS_POINTERS) && \ (defined(OS_LINUX) || defined(OS_ANDROID)) +#include // TODO(bikineev): Enable for ChromeOS. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0) #define PA_STARSCAN_UFFD_WRITE_PROTECTOR_SUPPORTED #endif +#endif // POSIX is not only UNIX, e.g. macOS and other OSes. We do use Linux-specific // features such as futex(2).