diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-07-14 16:19:57 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-07-14 16:19:57 +0200 |
commit | 0ae09b6000f99736f56cd3fc701855d474a31746 (patch) | |
tree | 8d40d69a9b5c1ac597b69fcf9b2532d7a2c10cc1 /package/htop/patches/patch-crt_c | |
parent | 3e16daee39b50bfccf4d389385f8748da016cdcc (diff) | |
parent | ac01f0d24321933d3456190164f5b68ccc94976a (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/htop/patches/patch-crt_c')
-rw-r--r-- | package/htop/patches/patch-crt_c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/htop/patches/patch-crt_c b/package/htop/patches/patch-crt_c new file mode 100644 index 000000000..b88d2a1de --- /dev/null +++ b/package/htop/patches/patch-crt_c @@ -0,0 +1,30 @@ +--- htop-0.9.orig/CRT.c 2010-11-23 16:56:32.000000000 +0100 ++++ htop-0.9/CRT.c 2011-05-31 14:30:06.000000000 +0200 +@@ -11,7 +11,9 @@ + #include <signal.h> + #include <stdlib.h> + #include <stdbool.h> ++#ifdef HAVE_EXECINFO_H + #include <execinfo.h> ++#endif + + #include "String.h" + +@@ -125,12 +127,14 @@ + CRT_done(); + #if __linux + fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://htop.sf.net\n"); +- #else +- fprintf(stderr, "\n\nhtop " VERSION " aborting. Unsupported platform.\n"); +- #endif ++ #ifdef HAVE_EXECINFO_H + size_t size = backtrace(backtraceArray, sizeof(backtraceArray)); + fprintf(stderr, "Backtrace: \n"); + backtrace_symbols_fd(backtraceArray, size, 2); ++ #endif ++ #else ++ fprintf(stderr, "\n\nhtop " VERSION " aborting. Unsupported platform.\n"); ++ #endif + abort(); + } + |