Fix: strerror_r behavior is glibc specific
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 30 May 2016 20:31:31 +0000 (16:31 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 31 May 2016 04:32:53 +0000 (06:32 +0200)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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.029927 seconds and 4 git commands to generate.