LibC: Fix stdc++ requirement in getpagesize

This commit is contained in:
2026-08-08 03:44:27 +03:00
parent 6e99eed541
commit 04b8f9d7a3
+3 -1
View File
@@ -676,7 +676,9 @@ int chroot(const char* path)
int getpagesize(void)
{
static int auxv_page_size = getauxval(AT_PAGESZ);
static int auxv_page_size = -1;
if (auxv_page_size == -1)
auxv_page_size = getauxval(AT_PAGESZ);
if (auxv_page_size)
return auxv_page_size;
return PAGE_SIZE;