From: Michael Jeanson Date: Mon, 30 May 2016 20:39:02 +0000 (-0400) Subject: Fix: strerror_r behavior is glibc specific X-Git-Tag: v2.0.0-pre1~932 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=6f4ee9bde855a323f4ccd0d5774ee3bef5481b2e 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