[lttng-dev] [PATCH babeltrace 2/2] Fix: strerror_r behavior is glibc specific
Michael Jeanson
mjeanson at efficios.com
Mon May 30 20:39:02 UTC 2016
Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
include/babeltrace/compat/string.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/babeltrace/compat/string.h b/include/babeltrace/compat/string.h
index 7a574e6..6092616 100644
--- a/include/babeltrace/compat/string.h
+++ b/include/babeltrace/compat/string.h
@@ -26,7 +26,7 @@
#include <string.h>
#include <stdlib.h>
-#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))
/* XSI-compliant strerror_r */
static inline
--
2.7.4
More information about the lttng-dev
mailing list