X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ferror.h;fp=src%2Fcommon%2Ferror.h;h=e8c811ee60e34e2510d65907cac6ba94747fe332;hp=0fbd3a2ed8ae19e8bc5db51a6275729eb8ab04ae;hb=b6dacfe27a91af50a1f81a2a7eadf4f34ca75769;hpb=6712db617fe9155ea236f6840c2bd18dbec4c871 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.