From: Michael Jeanson Date: Wed, 15 Jun 2016 21:18:04 +0000 (-0400) Subject: Fix: strerror_r behavior is glibc specific X-Git-Tag: v2.9.0-rc1~111 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b6dacfe27a91af50a1f81a2a7eadf4f34ca75769;p=lttng-tools.git Fix: strerror_r behavior is glibc specific Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/error.h b/src/common/error.h index 0fbd3a2ed..e8c811ee6 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -198,7 +198,7 @@ static inline void __lttng_print_check_abort(enum lttng_error_level type) #define _PERROR(fmt, args...) _ERRMSG("PERROR", PRINT_ERR, 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.