Fix a compile error on musl-libc due to strerror_r() prototype
authorMichal Gorny <mgorny@gentoo.org>
Tue, 18 Oct 2016 16:38:44 +0000 (16:38 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Tue, 18 Oct 2016 16:38:44 +0000 (16:38 +0000)
commitefc536ee9d2347700cb0ff76f2c16d121a7adbb4
tree9b2302af1e19a3d6d741a085cf5ce8ac38b0cfd2
parent25e9628978fcfed189f9de2e559d0845155b21ae
Fix a compile error on musl-libc due to strerror_r() prototype

Function strerror_r() has different signatures in different
implementations of libc: glibc's version returns a char*, while BSDs
and musl return a int. libomp unconditionally assumes glibc on Linux
and thus fails to compile against musl-libc. This patch addresses this
issue.

Differential Revision: https://reviews.llvm.org/D25071

llvm-svn: 284492
openmp/runtime/src/kmp_i18n.c