28 lines
863 B
Diff
28 lines
863 B
Diff
--- libretroshare/src/util/stacktrace.h.orig
|
|
+++ libretroshare/src/util/stacktrace.h
|
|
@@ -25,7 +25,7 @@
|
|
|
|
#include <stdio.h>
|
|
|
|
-#if !defined(WINDOWS_SYS) && !defined(__ANDROID__)
|
|
+#if defined(__linux__) && defined(__GLIBC__)
|
|
|
|
#include <stdlib.h>
|
|
#include <execinfo.h>
|
|
@@ -110,13 +110,13 @@ static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames
|
|
free(symbollist);
|
|
}
|
|
|
|
-#else // !defined(WINDOWS_SYS) && !defined(__ANDROID__)
|
|
+#else // defined(__linux__) && defined(__GLIBC__)
|
|
static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames = 63)
|
|
{
|
|
(void) max_frames;
|
|
|
|
fprintf(out, "TODO: 2016/01/01 print_stacktrace not implemented yet for WINDOWS_SYS and ANDROID\n");
|
|
}
|
|
-#endif // !defined(WINDOWS_SYS) && !defined(__ANDROID__)
|
|
+#endif // defined(__linux__) && defined(__GLIBC__)
|
|
|
|
#endif // _STACKTRACE_H_
|