965b905ebc
Closes 5994 by manual merge
29 lines
1,011 B
Diff
29 lines
1,011 B
Diff
--- src/glyrc/glyrc.c.original
|
|
+++ src/glyrc/glyrc.c
|
|
@@ -24,7 +24,7 @@
|
|
#include <glib.h>
|
|
#include <glib/gstdio.h>
|
|
|
|
-#ifdef __linux__
|
|
+#ifdef __GLIBC__
|
|
/* Backtrace*/
|
|
#include <execinfo.h>
|
|
#endif
|
|
@@ -102,7 +102,7 @@
|
|
|
|
////////////////////////////////////////////////////////////////
|
|
|
|
-#ifdef __linux__
|
|
+#ifdef __GLIBC__
|
|
#define STACK_FRAME_SIZE 20
|
|
|
|
/* Obtain a backtrace and print it to stdout. */
|
|
@@ -141,7 +141,7 @@
|
|
cvprint (DEFAULT," It would be just natural to blame us now, so just visit <https://github.com/sahib/glyr/issues>\n");
|
|
cvprint (DEFAULT," and throw hard words like 'backtrace', 'bug report' or even the '$(command I issued' at them).\n");
|
|
cvprint (DEFAULT," The libglyr developers will try to fix it as soon as possible so please stop pulling their hair.\n");
|
|
-#ifdef __linux__
|
|
+#ifdef __GLIBC__
|
|
cvprint (DEFAULT,"\nA list of the last called functions follows, please add this to your report:\n");
|
|
print_trace();
|
|
#endif
|