mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-01 14:52:14 +01:00
35 lines
1001 B
Diff
35 lines
1001 B
Diff
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>
|
|
|