From 58b6521eb5a06361d2965185de315eefa06dfe6a Mon Sep 17 00:00:00 2001 From: Dominic Chen Date: Wed, 16 Mar 2022 13:51:46 -0700 Subject: [PATCH] [scudo] Use portable sysconf instead of deprecated getpagesize Differential Revision: https://reviews.llvm.org/D121859 --- compiler-rt/lib/scudo/standalone/tests/map_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/scudo/standalone/tests/map_test.cpp b/compiler-rt/lib/scudo/standalone/tests/map_test.cpp index 095e1b6..ff05258 100644 --- a/compiler-rt/lib/scudo/standalone/tests/map_test.cpp +++ b/compiler-rt/lib/scudo/standalone/tests/map_test.cpp @@ -17,7 +17,7 @@ static const char *MappingName = "scudo:test"; TEST(ScudoMapTest, PageSize) { EXPECT_EQ(scudo::getPageSizeCached(), - static_cast(getpagesize())); + static_cast(sysconf(_SC_PAGESIZE))); } TEST(ScudoMapDeathTest, MapNoAccessUnmap) { -- 2.7.4