Index: test/asan/TestCases/Posix/large_allocator_unpoisons_on_free.cc =================================================================== --- test/asan/TestCases/Posix/large_allocator_unpoisons_on_free.cc +++ test/asan/TestCases/Posix/large_allocator_unpoisons_on_free.cc @@ -8,6 +8,7 @@ #include #include #include +#include #ifdef __ANDROID__ #include @@ -23,7 +24,7 @@ #endif int main() { - const int kPageSize = 4096; + const long kPageSize = sysconf(_SC_PAGESIZE); void *p = my_memalign(kPageSize, 1024 * 1024); free(p);