From: Michael Jeanson Date: Mon, 30 May 2016 20:31:31 +0000 (-0400) Subject: Fix: strerror_r behavior is glibc specific X-Git-Tag: v2.9.0-rc1~76 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b52af4675af8dce5a6c99f366102713c335a05da;p=lttng-ust.git Fix: strerror_r behavior is glibc specific Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/usterr-signal-safe.h b/include/usterr-signal-safe.h index bc68fbf4..1df5ada0 100644 --- a/include/usterr-signal-safe.h +++ b/include/usterr-signal-safe.h @@ -106,7 +106,7 @@ do { \ #define ERR(fmt, args...) ERRMSG("Error: " fmt, ## args) #define BUG(fmt, args...) ERRMSG("BUG: " fmt, ## args) -#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)) /* * Version using XSI strerror_r. */