Fix: strerror_r behavior is glibc specific
[lttng-tools.git] / src / common / error.h
index 0fbd3a2ed8ae19e8bc5db51a6275729eb8ab04ae..e8c811ee60e34e2510d65907cac6ba94747fe332 100644 (file)
@@ -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)
 
 
 #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.
 
 /*
  * Version using XSI strerror_r.
This page took 0.023398 seconds and 4 git commands to generate.