30 lines
1015 B
Diff
30 lines
1015 B
Diff
--- a/src/glyrc/glyrc.c.original
|
|
+++ b/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
|