aboutsummaryrefslogtreecommitdiffstats
path: root/main/kamailio/0002-remove-spurious-execinfo.patch
blob: d9403bb4c4850829cfe64cdb84bae3136114a2c3 (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
diff --git a/src/modules/ims_dialog/dlg_hash.c b/src/modules/ims_dialog/dlg_hash.c
index 999ae01..4fe4aae 100644
--- a/src/modules/ims_dialog/dlg_hash.c
+++ b/src/modules/ims_dialog/dlg_hash.c
@@ -17,7 +17,8 @@
 #include "dlg_profile.h"
 #include "dlg_handlers.h"
 #include "dlg_db_handler.h"
-#include <execinfo.h>
+
+// #include <execinfo.h>
 
 #define MAX_LDG_LOCKS  2048
 #define MIN_LDG_LOCKS  2
@@ -70,6 +71,7 @@ static int dlg_hash_size_out = 4096;
 		}\
 	}while(0)
 
+#ifdef ALPINE_SUPPORTS_BACKTRACE
 inline static int backtrace2str(char* buf, int size)
 {
         void* bt[32];
@@ -87,6 +89,7 @@ inline static int backtrace2str(char* buf, int size)
         }
         return 0;
 }
+#endif
 
 /*!
  * \brief Initialize the global dialog table