[Openmp-commits] [PATCH] D30056: Fix GNU strerror_r check for Android.

Dan Albert via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Mar 7 14:30:05 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL297235: Fix GNU strerror_r check for Android. (authored by danalbert).

Changed prior to commit:
  https://reviews.llvm.org/D30056?vs=88793&id=90942#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D30056

Files:
  openmp/trunk/runtime/src/kmp_i18n.cpp


Index: openmp/trunk/runtime/src/kmp_i18n.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_i18n.cpp
+++ openmp/trunk/runtime/src/kmp_i18n.cpp
@@ -819,7 +819,9 @@
                 int    strerror_r( int, char *, size_t );  // XSI version
         */
 
-        #if defined(__GLIBC__) && defined(_GNU_SOURCE)
+        #if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || \
+            (defined(__BIONIC__) && defined(_GNU_SOURCE) && \
+             __ANDROID_API__ >= __ANDROID_API_M__)
 
             // GNU version of strerror_r.
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30056.90942.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170307/65e73988/attachment.bin>


More information about the Openmp-commits mailing list