only enable the GNU libc strerror_r on GNU libc

We don't want use the non-standard GNU libc variant of strerror_r on
musl libc, or any libc other than GNU.
This commit is contained in:
Natanael Copa 2016-03-14 14:17:29 +00:00 committed by Justin Coyne
parent cd07923dd2
commit 621764c13d
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ struct sigar_t {
}; };
#define HAVE_STRERROR_R #define HAVE_STRERROR_R
#ifndef __USE_XOPEN2K #if !defined(__USE_XOPEN2K) && defined(__GLIBC__)
/* use gnu version of strerror_r */ /* use gnu version of strerror_r */
#define HAVE_STRERROR_R_GLIBC #define HAVE_STRERROR_R_GLIBC
#endif #endif