Snap for 11648291 from a516b2b5e5d8fab7293414eb8c02ec9c24c27c57 to 24Q3-release

Change-Id: I89c4659c90fdb375b1d3b5e72e1334104e0c2f72
diff --git a/tests/test_include/gralloc_helper.h b/tests/test_include/gralloc_helper.h
index b6cd24d..9741c33 100644
--- a/tests/test_include/gralloc_helper.h
+++ b/tests/test_include/gralloc_helper.h
@@ -47,7 +47,8 @@
 
 static inline size_t round_up_to_page_size(size_t x)
 {
-	return (x + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
+	const size_t page_size = getpagesize();
+	return (x + (page_size - 1)) & ~(page_size - 1);
 }
 
 #endif /* GRALLOC_HELPER_H_ */