]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/qt5/qt5webkit/5.6.2/0003-Exclude-backtrace-API-for-non-glibc-libraries.patch
support/testing: update ISO9660 test case Linux kernel
[coffee/buildroot.git] / package / qt5 / qt5webkit / 5.6.2 / 0003-Exclude-backtrace-API-for-non-glibc-libraries.patch
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
6 It was excluding musl with current checks, so lets make it such that it
7 considers only glibc when using backtrace API
8
9 Signed-off-by: Khem Raj <raj.khem@gmail.com>
10
11 Downloaded from:
12 https://github.com/meta-qt5/meta-qt5/blob/krogoth/recipes-qt/qt5/qtwebkit/
13 0003-Exclude-backtrace-API-for-non-glibc-libraries.patch
14
15 Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
16 ---
17  Source/WTF/wtf/Assertions.cpp | 4 ++--
18  1 file changed, 2 insertions(+), 2 deletions(-)
19
20 diff --git a/Source/WTF/wtf/Assertions.cpp b/Source/WTF/wtf/Assertions.cpp
21 index 1b2091f..ba03a28 100644
22 --- a/Source/WTF/wtf/Assertions.cpp
23 +++ b/Source/WTF/wtf/Assertions.cpp
24 @@ -61,7 +61,7 @@
25  #include <windows.h>
26  #endif
27  
28 -#if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID)
29 +#if (OS(DARWIN) || (OS(LINUX) && defined (__GLIBC__) && !defined(__UCLIBC__))) && !OS(ANDROID)
30  #include <cxxabi.h>
31  #include <dlfcn.h>
32  #include <execinfo.h>
33 @@ -245,7 +245,7 @@ void WTFReportArgumentAssertionFailure(const char* file, int line, const char* f
34  
35  void WTFGetBacktrace(void** stack, int* size)
36  {
37 -#if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID)
38 +#if (OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__))) && !OS(ANDROID)
39      *size = backtrace(stack, *size);
40  #elif OS(WINDOWS) && !OS(WINCE)
41      // The CaptureStackBackTrace function is available in XP, but it is not defined
42 -- 
43 2.7.0
44