aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sems/sems-0004-musl-fixes.patch
blob: 6302f30b39a257462ed159e3462bd2d409876341 (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
56
diff --git a/core/AmBasicSipDialog.cpp b/core/AmBasicSipDialog.cpp
index 8a9fc04..d6d5ab7 100644
--- a/core/AmBasicSipDialog.cpp
+++ b/core/AmBasicSipDialog.cpp
@@ -591,7 +591,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 933657e..efc2ae2 100644
--- a/core/log.cpp
+++ b/core/log.cpp
@@ -206,6 +206,7 @@ void register_log_hook(AmLoggingFacility* fac)
   log_hooks.push_back(fac);
 }
 
+#ifdef MUSL_SUPPORTS_BACKTRACE
 /**
  * Print stack-trace through logging function
  */
@@ -300,3 +301,5 @@ void __lds(int ll, unsigned int max_frames)
   free(funcname);
   free(symbollist);
 }
+
+#endif
diff --git a/core/log.h b/core/log.h
index 253d824..5ffda75 100644
--- a/core/log.h
+++ b/core/log.h
@@ -33,7 +33,7 @@
 #include <stdio.h>
 #include <unistd.h>	/* getpid() */
 #include <pthread.h>	/* pthread_self() */
-#include <execinfo.h>   /* backtrace_symbols() */
+// #include <execinfo.h>   /* backtrace_symbols() */
 
 #ifdef __cplusplus
 #include <cxxabi.h> /* __cxa_demangle() */
diff --git a/core/sems.cpp b/core/sems.cpp
index 6f03e5c..d7030eb 100644
--- a/core/sems.cpp
+++ b/core/sems.cpp
@@ -69,6 +69,7 @@
 using std::string;
 
 #if defined(__linux__)
+#include <sys/resource.h>
 #include <sys/prctl.h>
 #endif