From 3c067fc14e0f64406e64947191d7a212a5ffc5fa Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 30 May 2016 16:39:02 -0400 Subject: [PATCH] Fix: strerror_r behavior is glibc specific MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- include/babeltrace/compat/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1