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 authored and Justin Coyne committed 2018-11-30 22:34:24 -06:00
1 parent cd07923dd2
commit 621764c13d
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ struct sigar_t {
};
#define HAVE_STRERROR_R
#ifndef __USE_XOPEN2K
#if !defined(__USE_XOPEN2K) && defined(__GLIBC__)
/* use gnu version of strerror_r */
#define HAVE_STRERROR_R_GLIBC
#endif