c987560802
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
20 lines
915 B
Diff
20 lines
915 B
Diff
--- a/cegui/src/Exceptions.cpp
|
|
+++ b/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 @@
|
|
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);
|
|
|