From 228df2630d2f699bf0053c321b3986a7f851e6b9 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sat, 30 Sep 2017 23:00:40 -0400 Subject: [PATCH] apple platforms use XSI-style strerror_r --- sol/compatibility/compat-5.3.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sol/compatibility/compat-5.3.c b/sol/compatibility/compat-5.3.c index e61f37d1..7f7b572c 100644 --- a/sol/compatibility/compat-5.3.c +++ b/sol/compatibility/compat-5.3.c @@ -31,9 +31,10 @@ # if defined(__GLIBC__) || defined(_POSIX_VERSION) || defined(__APPLE__) || \ (!defined (__MINGW32__) && defined(__GNUC__) && (__GNUC__ < 6)) # define COMPAT53_HAVE_STRERROR_R 1 -# if ((defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \ +# if (((defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \ (defined(_XOPEN_SOURCE) || _XOPEN_SOURCE >= 600)) && \ - (!defined(_GNU_SOURCE) || !_GNU_SOURCE) + (!defined(_GNU_SOURCE) || !_GNU_SOURCE)) || \ + defined(__APPLE__) # ifndef COMPAT53_HAVE_STRERROR_R_XSI # define COMPAT53_HAVE_STRERROR_R_XSI 1 # endif /* XSI-Compliant strerror_r */