diff options
author | Simon Dawson <spdawson@gmail.com> | 2013-04-24 23:19:01 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-05-06 12:33:28 +0200 |
commit | 44a2eff85bffa73be8cf9fe81859844d49bc6dce (patch) | |
tree | 61a36efba9dda73418b09581cc89d1cd57754ba8 /package/wvstreams/wvstreams-0002-fix-uClibc-compile-execinfo-backtrace.patch | |
parent | cccb01bf5947a7ea3a80cb14d680259e3a20d428 (diff) | |
download | buildroot-novena-44a2eff85bffa73be8cf9fe81859844d49bc6dce.tar.gz buildroot-novena-44a2eff85bffa73be8cf9fe81859844d49bc6dce.zip |
wvstreams: new package
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/wvstreams/wvstreams-0002-fix-uClibc-compile-execinfo-backtrace.patch')
-rw-r--r-- | package/wvstreams/wvstreams-0002-fix-uClibc-compile-execinfo-backtrace.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/package/wvstreams/wvstreams-0002-fix-uClibc-compile-execinfo-backtrace.patch b/package/wvstreams/wvstreams-0002-fix-uClibc-compile-execinfo-backtrace.patch new file mode 100644 index 000000000..c6317da4d --- /dev/null +++ b/package/wvstreams/wvstreams-0002-fix-uClibc-compile-execinfo-backtrace.patch @@ -0,0 +1,31 @@ +Fix wvstreams so that it builds with uClibc: we don't have execinfo.h, +so we can't do backtrace() stuff. + +Signed-off-by: Simon Dawson <spdawson@gmail.com> + +diff -Nurp a/utils/wvcrash.cc b/utils/wvcrash.cc +--- a/utils/wvcrash.cc 2008-12-17 12:24:20.000000000 +0000 ++++ b/utils/wvcrash.cc 2012-07-27 22:00:15.456502262 +0100 +@@ -28,7 +28,9 @@ + // FIXME: this file mostly only works in Linux + #ifdef __linux + +-# include <execinfo.h> ++#ifdef HAVE_EXECINFO_H ++#include <execinfo.h> ++#endif + #include <unistd.h> + + #ifdef __USE_GNU +@@ -267,9 +269,11 @@ static void wvcrash_real(int sig, int fd + } + } + ++#ifdef HAVE_EXECINFO_H + wr(fd, "\nBacktrace:\n"); + backtrace_symbols_fd(trace, + backtrace(trace, sizeof(trace)/sizeof(trace[0])), fd); ++#endif + + if (pid > 0) + { |