18 lines
702 B
Diff
18 lines
702 B
Diff
diff --git base/allocator/partition_allocator/partition_alloc_config.h base/allocator/partition_allocator/partition_alloc_config.h
|
|
index c5ccd81..6d15bfd 100644
|
|
--- base/allocator/partition_allocator/partition_alloc_config.h
|
|
+++ base/allocator/partition_allocator/partition_alloc_config.h
|
|
@@ -33,9 +33,12 @@
|
|
|
|
#if defined(PA_HAS_64_BITS_POINTERS) && \
|
|
(defined(OS_LINUX) || defined(OS_ANDROID))
|
|
+#include <linux/version.h>
|
|
// 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).
|