[scudo] Use portable sysconf instead of deprecated getpagesize

Differential Revision: https://reviews.llvm.org/D121859
This commit is contained in:
Dominic Chen 2022-03-16 13:51:46 -07:00
parent 54691a58db
commit 58b6521eb5
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ static const char *MappingName = "scudo:test";
TEST(ScudoMapTest, PageSize) {
EXPECT_EQ(scudo::getPageSizeCached(),
static_cast<scudo::uptr>(getpagesize()));
static_cast<scudo::uptr>(sysconf(_SC_PAGESIZE)));
}
TEST(ScudoMapDeathTest, MapNoAccessUnmap) {