aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sipwise-sems/sems-0004-remove-execinfo-dependency.patch
blob: 12379a2ade4879b14424bad48ea9751a75d5cb1e (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
 }