2016-03-14 08:12:51 +01:00
|
|
|
--- cegui/src/Exceptions.cpp
|
|
|
|
+++ cegui/src/Exceptions.cpp
|
|
|
|
@@ -39,7 +39,7 @@
|
|
|
|
# include <dbghelp.h>
|
|
|
|
#elif defined(__ANDROID__)
|
|
|
|
# include <android/log.h>
|
|
|
|
-#elif (defined(__linux__) && !defined(__ANDROID__)) \
|
|
|
|
+#elif (defined(__linux__) && defined(__GLIBC__) && !defined(__ANDROID__)) \
|
|
|
|
|| defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) \
|
|
|
|
|| defined(__HAIKU__)
|
|
|
|
# include <execinfo.h>
|
|
|
|
@@ -141,7 +141,7 @@
|
2015-08-02 18:34:30 +02:00
|
|
|
logger.logEvent("========== End of Backtrace ==========", Errors);
|
|
|
|
|
|
|
|
SymCleanup(GetCurrentProcess());
|
|
|
|
-#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
|
|
|
|
+#elif (defined(__linux__) && defined(__GLIBC__)) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
|
|
|
|
void* buffer[frames];
|
|
|
|
const int received = backtrace(&buffer[0], frames);
|
|
|
|
|