[lttng-dev] [PATCH lttng-ust 2/4] Fix: strerror_r behavior is glibc specific

Michael Jeanson mjeanson at efficios.com
Mon May 30 20:31:31 UTC 2016


Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 include/usterr-signal-safe.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/usterr-signal-safe.h b/include/usterr-signal-safe.h
index bc68fbf..1df5ada 100644
--- a/include/usterr-signal-safe.h
+++ b/include/usterr-signal-safe.h
@@ -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.
  */
-- 
2.7.4



More information about the lttng-dev mailing list