aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fotoxx/no-execinfo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fotoxx/no-execinfo.patch')
-rw-r--r--testing/fotoxx/no-execinfo.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/fotoxx/no-execinfo.patch b/testing/fotoxx/no-execinfo.patch
new file mode 100644
index 0000000000..c0e43a9f7c
--- /dev/null
+++ b/testing/fotoxx/no-execinfo.patch
@@ -0,0 +1,34 @@
+diff --git a/zfuncs.cc b/zfuncs.cc
+index 1398557..c504bbf 100644
+--- a/zfuncs.cc
++++ b/zfuncs.cc
+@@ -77,6 +77,7 @@ void zappcrash(cchar *pMess, ... ) // v
+
+ printf("zappcrash: \n %s \n",message); // output message to stdout
+
++#ifndef __UCLIBC__
+ nstack = backtrace(stacklist,nstack); // get traceback data
+ stackents = backtrace_symbols(stacklist,nstack);
+
+@@ -113,6 +114,7 @@ void zappcrash(cchar *pMess, ... ) // v
+ fclose(fid1);
+
+ err = system("xdg-open zappcrash"); // display in editor
++#endif
+ abort();
+ }
+
+diff --git a/zfuncs.h b/zfuncs.h
+index e415adb..b6f02ac 100644
+--- a/zfuncs.h
++++ b/zfuncs.h
+@@ -34,7 +34,9 @@
+ #include <pthread.h>
+ #include <errno.h>
+ #include <signal.h>
++#ifndef __UCLIBC__
+ #include <execinfo.h>
++#endif
+ #include <locale.h>
+ #include <sys/inotify.h>
+