Fix: strerror_r behavior is glibc specific
[deliverable/lttng-ust.git] / include / usterr-signal-safe.h
index bc68fbf4b2f81a5fc76bc67d492903cbe6f4eb64..1df5ada0ff2ec290d4eb5f53a15836a5bb7cb454 100644 (file)
@@ -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.
  */
This page took 0.023908 seconds and 5 git commands to generate.