From 9ed39d4cc796ed996d981ffe0f8a45e9a702ebef Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 22 Jun 2025 07:45:18 -0400 Subject: [PATCH] [OpenMP] Simplify GNU strerror_r check for Android Android 6 is the baseline so simplify the Android check. --- openmp/runtime/src/kmp_i18n.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openmp/runtime/src/kmp_i18n.cpp b/openmp/runtime/src/kmp_i18n.cpp index a164aa180dd48..70b629dc44b85 100644 --- a/openmp/runtime/src/kmp_i18n.cpp +++ b/openmp/runtime/src/kmp_i18n.cpp @@ -708,9 +708,7 @@ static char *sys_error(int err) { int strerror_r( int, char *, size_t ); // XSI version */ -#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || \ - (defined(__BIONIC__) && defined(_GNU_SOURCE) && \ - __ANDROID_API__ >= __ANDROID_API_M__) +#if (defined(__GLIBC__) || defined(__BIONIC__)) && defined(_GNU_SOURCE) // GNU version of strerror_r. char buffer[2048];