From: Michael Jeanson Date: Mon, 30 May 2016 20:39:02 +0000 (-0400) Subject: Fix: strerror_r behavior is glibc specific X-Git-Tag: v1.4.0~5 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=3c067fc14e0f64406e64947191d7a212a5ffc5fa;ds=sidebyside Fix: strerror_r behavior is glibc specific Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/include/babeltrace/compat/string.h b/include/babeltrace/compat/string.h index 7a574e67..60926161 100644 --- a/include/babeltrace/compat/string.h +++ b/include/babeltrace/compat/string.h @@ -26,7 +26,7 @@ #include #include -#if !defined(__linux__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE)) +#if !defined(__GLIBC__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE)) /* XSI-compliant strerror_r */ static inline