[Openmp-commits] [PATCH] D25071: [openmp] fix a compile error on musl-libc

Lei Zhang via Openmp-commits openmp-commits at lists.llvm.org
Fri Oct 7 18:46:21 PDT 2016


zlei updated this revision to Diff 74008.

https://reviews.llvm.org/D25071

Files:
  runtime/src/kmp_i18n.c


Index: runtime/src/kmp_i18n.c
===================================================================
--- runtime/src/kmp_i18n.c
+++ runtime/src/kmp_i18n.c
@@ -809,7 +809,7 @@
                 int    strerror_r( int, char *, size_t );  // XSI version
         */
 
-        #if KMP_OS_LINUX
+        #if defined(__GLIBC__) && defined(_GNU_SOURCE)
 
             // GNU version of strerror_r.
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25071.74008.patch
Type: text/x-patch
Size: 390 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20161008/95cc5704/attachment-0001.bin>


More information about the Openmp-commits mailing list