0002-Fix-strerror_r-behavior-is-glibc-specific.patch 1.1 KB

123456789101112131415161718192021222324252627282930
  1. From fc743b22fc26eab9f9dbf48e4505ed2394924bba Mon Sep 17 00:00:00 2001
  2. From: Michael Jeanson <mjeanson@efficios.com>
  3. Date: Mon, 13 Jun 2016 18:44:17 -0400
  4. Subject: [PATCH lttng-tools] Fix: strerror_r behavior is glibc specific
  5. Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
  6. [Philippe: grabbed from the mailing list:
  7. https://lists.lttng.org/pipermail/lttng-dev/2016-June/026194.html
  8. ]
  9. Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
  10. ---
  11. src/common/error.h | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/src/common/error.h b/src/common/error.h
  14. index 0fbd3a2..e8c811e 100644
  15. --- a/src/common/error.h
  16. +++ b/src/common/error.h
  17. @@ -198,7 +198,7 @@ static inline void __lttng_print_check_abort(enum lttng_error_level type)
  18. #define _PERROR(fmt, args...) _ERRMSG("PERROR", PRINT_ERR, fmt, ## args)
  19. -#if !defined(__linux__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
  20. +#if !defined(__GLIBC__) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
  21. /*
  22. * Version using XSI strerror_r.
  23. --
  24. 2.7.4