0003-Exclude-backtrace-API-for-non-glibc-libraries.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From 6c36f0ff8c1f5852c33d2b23714f9f187cc6ff26 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Fri, 5 Jun 2015 19:55:05 -0700
  4. Subject: [PATCH] Exclude backtrace() API for non-glibc libraries
  5. It was excluding musl with current checks, so lets make it such that it
  6. considers only glibc when using backtrace API
  7. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  8. Downloaded from:
  9. https://github.com/meta-qt5/meta-qt5/blob/krogoth/recipes-qt/qt5/qtwebkit/
  10. 0003-Exclude-backtrace-API-for-non-glibc-libraries.patch
  11. Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
  12. ---
  13. Source/WTF/wtf/Assertions.cpp | 4 ++--
  14. 1 file changed, 2 insertions(+), 2 deletions(-)
  15. diff --git a/Source/WTF/wtf/Assertions.cpp b/Source/WTF/wtf/Assertions.cpp
  16. index 1b2091f..ba03a28 100644
  17. --- a/Source/WTF/wtf/Assertions.cpp
  18. +++ b/Source/WTF/wtf/Assertions.cpp
  19. @@ -61,7 +61,7 @@
  20. #include <windows.h>
  21. #endif
  22. -#if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID)
  23. +#if (OS(DARWIN) || (OS(LINUX) && defined (__GLIBC__) && !defined(__UCLIBC__))) && !OS(ANDROID)
  24. #include <cxxabi.h>
  25. #include <dlfcn.h>
  26. #include <execinfo.h>
  27. @@ -245,7 +245,7 @@ void WTFReportArgumentAssertionFailure(const char* file, int line, const char* f
  28. void WTFGetBacktrace(void** stack, int* size)
  29. {
  30. -#if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID)
  31. +#if (OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__))) && !OS(ANDROID)
  32. *size = backtrace(stack, *size);
  33. #elif OS(WINDOWS) && !OS(WINCE)
  34. // The CaptureStackBackTrace function is available in XP, but it is not defined
  35. --
  36. 2.7.0