aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sipwise-sems/sems-0004-remove-execinfo-dependency.patch
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@alpinelinux.org>2015-05-14 14:09:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-05-15 11:44:06 +0000
commit8df570d9915181c49b21f33244fa21bf970b4002 (patch)
treeca5a7261bd02b5367c5a544f238c790a8eae7769 /testing/sipwise-sems/sems-0004-remove-execinfo-dependency.patch
parenta824d445bbe2abb22ca2362898b7e72054639120 (diff)
downloadaports-8df570d9915181c49b21f33244fa21bf970b4002.tar.gz
aports-8df570d9915181c49b21f33244fa21bf970b4002.tar.bz2
aports-8df570d9915181c49b21f33244fa21bf970b4002.tar.xz
new aport: sipwise-sems [3.8.1.1]
This is sipwise.com's fork of sems, based on 1.6.0-dev + nightlies
Diffstat (limited to 'testing/sipwise-sems/sems-0004-remove-execinfo-dependency.patch')
-rw-r--r--testing/sipwise-sems/sems-0004-remove-execinfo-dependency.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/sipwise-sems/sems-0004-remove-execinfo-dependency.patch b/testing/sipwise-sems/sems-0004-remove-execinfo-dependency.patch
new file mode 100644
index 0000000000..12379a2ade
--- /dev/null
+++ b/testing/sipwise-sems/sems-0004-remove-execinfo-dependency.patch
@@ -0,0 +1,55 @@
+diff --git a/core/AmBasicSipDialog.cpp b/core/AmBasicSipDialog.cpp
+index f0aeef4..c177766 100644
+--- a/core/AmBasicSipDialog.cpp
++++ b/core/AmBasicSipDialog.cpp
+@@ -577,7 +577,7 @@ int AmBasicSipDialog::reply(const AmSipRequest& req,
+ "remote_tag=%s\n",
+ req.cseq,code,callid.c_str(),
+ local_tag.c_str(),remote_tag.c_str());
+- log_stacktrace(L_ERR);
++ /* log_stacktrace(L_ERR); */
+ return -1;
+ }
+ DBG("reply: transaction found!\n");
+diff --git a/core/log.cpp b/core/log.cpp
+index d1de02f..9e59464 100644
+--- a/core/log.cpp
++++ b/core/log.cpp
+@@ -209,6 +209,7 @@ void register_log_hook(AmLoggingFacility* fac)
+ /**
+ * Print stack-trace through logging function
+ */
++/*
+ void log_stacktrace(int ll)
+ {
+ void* callstack[128];
+@@ -219,3 +220,4 @@ void log_stacktrace(int ll)
+ }
+ free(strs);
+ }
++*/
+diff --git a/core/log.h b/core/log.h
+index 7eb2480..892c926 100644
+--- a/core/log.h
++++ b/core/log.h
+@@ -33,8 +33,9 @@
+ #include <stdio.h>
+ #include <unistd.h> /* getpid() */
+ #include <pthread.h> /* pthread_self() */
++#if defined (__GLIBC__)
+ #include <execinfo.h> /* backtrace_symbols() */
+-
++#endif
+
+ #ifdef __cplusplus
+ extern "C" {
+@@ -174,7 +175,9 @@ void run_log_hooks(int, pid_t, pthread_t, const char*, const char*, int, char*);
+ int set_syslog_facility(const char*);
+ #endif
+
++/*
+ void log_stacktrace(int ll);
++*/
+
+ #ifdef __cplusplus
+ }