diff options
author | Corey Farrell <git@cfware.com> | 2015-03-31 11:47:14 +0000 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2015-03-31 11:47:14 +0000 |
commit | 99677396699ae415a8f58cf7436cb9c96d879f57 (patch) | |
tree | 4a0be8594d699c0bd90d49b95a844fcce8dbd2d8 /main | |
parent | 2d39bc55286c73cb81138f1dc8eaf8217ed312f1 (diff) |
Re-add _ast_mem_backtrace_buffer variable for ABI compatibility.
Modules built prior to commit of r4502 expect to link at runtime
to the variable _ast_mem_backtrace_buffer. This change re-adds
the variable to the C file only.
Review: https://reviewboard.asterisk.org/r/4558/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/utils.c b/main/utils.c index 888aaab81..d162cccf8 100644 --- a/main/utils.c +++ b/main/utils.c @@ -75,6 +75,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") static char base64[64]; static char b2a[256]; +/* This is for binary compatibility with modules built before + * ast_log_safe existed. */ +#define _AST_MEM_BACKTRACE_BUFLEN 60 +void *_ast_mem_backtrace_buffer[_AST_MEM_BACKTRACE_BUFLEN]; + AST_THREADSTORAGE(inet_ntoa_buf); #if !defined(HAVE_GETHOSTBYNAME_R_5) && !defined(HAVE_GETHOSTBYNAME_R_6) |