aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lttng-ust/glibc-strerr-r.patch
blob: fa774139d9e6bc11e4e3378ca2b4b9e2c08692b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- lttng-ust-2.8.0.orig/include/usterr-signal-safe.h
+++ lttng-ust-2.8.0/include/usterr-signal-safe.h
@@ -106,7 +106,7 @@
 #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.
  */