20 lines
674 B
Diff
20 lines
674 B
Diff
--- Source/WTF/wtf/Assertions.cpp
|
|
+++ Source/WTF/wtf/Assertions.cpp
|
|
@@ -64,7 +64,7 @@
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
-#if OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))
|
|
+#if OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__))
|
|
#include <cxxabi.h>
|
|
#include <dlfcn.h>
|
|
#include <execinfo.h>
|
|
@@ -242,7 +242,7 @@
|
|
|
|
void WTFGetBacktrace(void** stack, int* size)
|
|
{
|
|
-#if OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))
|
|
+#if OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__))
|
|
*size = backtrace(stack, *size);
|
|
#elif OS(WINDOWS) && !OS(WINCE)
|
|
// The CaptureStackBackTrace function is available in XP, but it is not defined
|