From aa111285b64d07f93ee1e15a6e83d4a146b475b0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 18 Jun 2012 23:40:36 +0000 Subject: [PATCH] hsflowd: fix compile for x86+uClibc Remove another call to backtrace_symbols_fd to make hsflowd compile for x86+uClibc targets. Signed-off-by: Stijn Tintel SVN-Revision: 32437 --- net/hsflowd/patches/200-uclibc-compat.patch | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/net/hsflowd/patches/200-uclibc-compat.patch b/net/hsflowd/patches/200-uclibc-compat.patch index 5492daaf90..4c0a82ee99 100644 --- a/net/hsflowd/patches/200-uclibc-compat.patch +++ b/net/hsflowd/patches/200-uclibc-compat.patch @@ -15,7 +15,15 @@ fflush(f_crash); // Do something useful with siginfo_t if (sig == SIGSEGV) { -@@ -2005,7 +2004,6 @@ extern "C" { +@@ -1430,7 +1429,6 @@ extern "C" { + // overwrite sigaction with caller's address + backtracePtrs[1] = (void *)(((ucontext_t *)secret)->uc_mcontext.gregs[REG_EIP]); + // then write again: +- backtrace_symbols_fd(backtracePtrs, siz, fileno(f_crash)); + fflush(f_crash); + #endif + // exit with the original signal so we get the right idea +@@ -2005,7 +2003,6 @@ extern "C" { if(debug) { myLog(LOG_INFO, "initAgent suceeded"); // print some stats to help us size HSP_RLIMIT_MEMLOCK etc. -- 2.30.2