38 lines
1 KiB
Diff
38 lines
1 KiB
Diff
There is no execinfo.h in musl. Disable backtrace code if
|
|
__GLIBC__ is not defined.
|
|
|
|
--- Source/WTF/wtf/Assertions.cpp
|
|
+++ Source/WTF/wtf/Assertions.cpp
|
|
@@ -71,8 +71,10 @@
|
|
#if OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))
|
|
#include <cxxabi.h>
|
|
#include <dlfcn.h>
|
|
+#if defined(__GLIBC__)
|
|
#include <execinfo.h>
|
|
#endif
|
|
+#endif
|
|
|
|
extern "C" {
|
|
|
|
@@ -225,7 +227,7 @@
|
|
|
|
void WTFGetBacktrace(void** stack, int* size)
|
|
{
|
|
-#if OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))
|
|
+#if OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__))
|
|
*size = backtrace(stack, *size);
|
|
#elif OS(WINDOWS)
|
|
// The CaptureStackBackTrace function is available in XP, but it is not defined
|
|
index 657ced4..ceb9c47 100644
|
|
--- Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.cpp
|
|
+++ Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.cpp
|
|
@@ -46,7 +46,9 @@
|
|
|
|
#include <cxxabi.h>
|
|
#include <dlfcn.h>
|
|
+#if defined(__GLIBC__)
|
|
#include <execinfo.h>
|
|
+#endif
|
|
|
|
#if ENABLE(REMOTE_INSPECTOR)
|
|
#include "JSGlobalObjectDebuggable.h"
|