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

Michał Górny via Openmp-commits openmp-commits at lists.llvm.org
Tue Oct 18 09:47:59 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL284492: Fix a compile error on musl-libc due to strerror_r() prototype (authored by mgorny).

Changed prior to commit:
  https://reviews.llvm.org/D25071?vs=74008&id=75023#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D25071

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


Index: openmp/trunk/runtime/src/kmp_i18n.c
===================================================================
--- openmp/trunk/runtime/src/kmp_i18n.c
+++ openmp/trunk/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.75023.patch
Type: text/x-patch
Size: 429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20161018/05d3b1f3/attachment.bin>


More information about the Openmp-commits mailing list