python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / glyr / patches / musl-execinfo.patch
blob67f626745664b822bd2cae15f4da543be2b16cec
1 --- src/glyrc/glyrc.c.original
2 +++ src/glyrc/glyrc.c
3 @@ -24,7 +24,7 @@
4 #include <glib.h>
5 #include <glib/gstdio.h>
7 -#ifdef __linux__
8 +#ifdef __GLIBC__
9 /* Backtrace*/
10 #include <execinfo.h>
11 #endif
12 @@ -102,7 +102,7 @@
14 ////////////////////////////////////////////////////////////////
16 -#ifdef __linux__
17 +#ifdef __GLIBC__
18 #define STACK_FRAME_SIZE 20
20 /* Obtain a backtrace and print it to stdout. */
21 @@ -141,7 +141,7 @@
22 cvprint (DEFAULT," It would be just natural to blame us now, so just visit <https://github.com/sahib/glyr/issues>\n");
23 cvprint (DEFAULT," and throw hard words like 'backtrace', 'bug report' or even the '$(command I issued' at them).\n");
24 cvprint (DEFAULT," The libglyr developers will try to fix it as soon as possible so please stop pulling their hair.\n");
25 -#ifdef __linux__
26 +#ifdef __GLIBC__
27 cvprint (DEFAULT,"\nA list of the last called functions follows, please add this to your report:\n");
28 print_trace();
29 #endif