Skip to content

Commit

Permalink
ims_dialog: remove execinfo usage
Browse files Browse the repository at this point in the history
Currently, ims_dialog includes execinfo.h to use backtrace in the
backtrace2str function. However, all calls to backtrace2str are
commented so disable this function through "if 0" and comment the
include on execinfo.h to allow the cross-compilation of the ims_dialog
module as some libc's don't always have this header (uclibc-ng, musl)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  • Loading branch information
ffontaine committed Mar 10, 2017
1 parent 06e2191 commit a5c4dbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/ims_dialog/dlg_hash.c
Expand Up @@ -17,7 +17,7 @@
#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
Expand Down Expand Up @@ -70,6 +70,7 @@ static int dlg_hash_size_out = 4096;
}\
}while(0)

#if 0
inline static int backtrace2str(char* buf, int size)
{
void* bt[32];
Expand All @@ -87,6 +88,7 @@ inline static int backtrace2str(char* buf, int size)
}
return 0;
}
#endif

/*!
* \brief Initialize the global dialog table
Expand Down

0 comments on commit a5c4dbc

Please sign in to comment.