Fix build on sparc64

ok ajacoutot@ (maintainer)
This commit is contained in:
jca 2020-04-25 20:04:14 +00:00
parent a7461e2826
commit b8c71ac3c0

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-Source_WTF_wtf_PageBlock_h,v 1.1 2020/04/25 20:04:14 jca Exp $
Index: Source/WTF/wtf/PageBlock.h
--- Source/WTF/wtf/PageBlock.h.orig
+++ Source/WTF/wtf/PageBlock.h
@@ -51,6 +51,8 @@ namespace WTF {
constexpr size_t CeilingOnPageSize = 16 * KB;
#elif OS(WINDOWS) || CPU(MIPS) || CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64)
constexpr size_t CeilingOnPageSize = 4 * KB;
+#elif CPU(SPARC64)
+constexpr size_t CeilingOnPageSize = 8 * KB;
#elif CPU(UNKNOWN) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE)
constexpr size_t CeilingOnPageSize = 64 * KB;
#else