modules: readme files regenerated - kex ... [skip ci]
[sip-router] / pkg / kamailio / alpine / 0002-remove-spurious-execinfo.patch
1 diff --git a/src/modules/ims_dialog/dlg_hash.c b/src/modules/ims_dialog/dlg_hash.c
2 index 999ae01..4fe4aae 100644
3 --- a/src/modules/ims_dialog/dlg_hash.c
4 +++ b/src/modules/ims_dialog/dlg_hash.c
5 @@ -17,7 +17,8 @@
6  #include "dlg_profile.h"
7  #include "dlg_handlers.h"
8  #include "dlg_db_handler.h"
9 -#include <execinfo.h>
10 +
11 +// #include <execinfo.h>
12  
13  #define MAX_LDG_LOCKS  2048
14  #define MIN_LDG_LOCKS  2
15 @@ -70,6 +71,7 @@ static int dlg_hash_size_out = 4096;
16                 }\
17         }while(0)
18  
19 +#ifdef ALPINE_SUPPORTS_BACKTRACE
20  inline static int backtrace2str(char* buf, int size)
21  {
22          void* bt[32];
23 @@ -87,6 +89,7 @@ inline static int backtrace2str(char* buf, int size)
24          }
25          return 0;
26  }
27 +#endif
28  
29  /*!
30   * \brief Initialize the global dialog table