diff options
Diffstat (limited to 'lib/sanitizer_common/sanitizer_getauxval.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_getauxval.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_getauxval.h b/lib/sanitizer_common/sanitizer_getauxval.h index d0287f02c..7b255c60b 100644 --- a/lib/sanitizer_common/sanitizer_getauxval.h +++ b/lib/sanitizer_common/sanitizer_getauxval.h @@ -8,7 +8,8 @@ //===----------------------------------------------------------------------===// // // Common getauxval() guards and definitions. -// getauxval() is not defined until glbc version 2.16. +// getauxval() is not defined until glibc version 2.16, or until API level 21 +// for Android. // //===----------------------------------------------------------------------===// @@ -25,7 +26,7 @@ #define __GLIBC_PREREQ(x, y) 0 #endif -#if __GLIBC_PREREQ(2, 16) +#if __GLIBC_PREREQ(2, 16) || (SANITIZER_ANDROID && __ANDROID_API__ >= 21) # define SANITIZER_USE_GETAUXVAL 1 #else # define SANITIZER_USE_GETAUXVAL 0 |