aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fotoxx/no-execinfo.patch
blob: c0e43a9f7cbb319f4e06632346412c253fcdbba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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>