diff options
Diffstat (limited to 'tests/sys_prctl_test.cpp')
-rw-r--r-- | tests/sys_prctl_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/sys_prctl_test.cpp b/tests/sys_prctl_test.cpp index 2123c944e..7afa626a6 100644 --- a/tests/sys_prctl_test.cpp +++ b/tests/sys_prctl_test.cpp @@ -29,11 +29,10 @@ #include "android-base/file.h" #include "android-base/strings.h" -#include "private/bionic_prctl.h" // http://b/20017123. TEST(sys_prctl, bug_20017123) { -#if defined(__ANDROID__) // PR_SET_VMA is only available in Android kernels. +#if defined(PR_SET_VMA) // PR_SET_VMA is only available in Android kernels. size_t page_size = static_cast<size_t>(sysconf(_SC_PAGESIZE)); void* p = mmap(NULL, page_size * 3, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); ASSERT_NE(MAP_FAILED, p); |