[asterisk-commits] coreyfarrell: branch 13 r433773 - in /branches/13: ./ include/asterisk/ main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 30 06:42:02 CDT 2015
Author: coreyfarrell
Date: Mon Mar 30 06:42:00 2015
New Revision: 433773
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433773
Log:
Fix an ABI compatibility issue with ast_log_safe for modules.
Binary modules are sometimes built against the latest release of
Asterisk in each branch, and need to be compatible with all
releases of that branch. This change ensures that utils.h only
uses ast_log_safe from the core. For modules and utilities ast_log
is used instead.
Review: https://reviewboard.asterisk.org/r/4548/
........
Merged revisions 433772 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
branches/13/ (props changed)
branches/13/include/asterisk/utils.h
branches/13/main/Makefile
Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: branches/13/include/asterisk/utils.h
URL: http://svnview.digium.com/svn/asterisk/branches/13/include/asterisk/utils.h?view=diff&rev=433773&r1=433772&r2=433773
==============================================================================
--- branches/13/include/asterisk/utils.h (original)
+++ branches/13/include/asterisk/utils.h Mon Mar 30 06:42:00 2015
@@ -525,7 +525,7 @@
#define ast_free free
#define ast_free_ptr ast_free
-#if !defined(STANDALONE)
+#if defined(AST_IN_CORE)
#define MALLOC_FAILURE_MSG \
ast_log_safe(LOG_ERROR, "Memory Allocation Failure in function %s at line %d of %s\n", func, lineno, file)
#else
Modified: branches/13/main/Makefile
URL: http://svnview.digium.com/svn/asterisk/branches/13/main/Makefile?view=diff&rev=433773&r1=433772&r2=433773
==============================================================================
--- branches/13/main/Makefile (original)
+++ branches/13/main/Makefile Mon Mar 30 06:42:00 2015
@@ -186,7 +186,7 @@
GMIMELDFLAGS+=$(GMIME_LIB)
endif
-$(OBJS): _ASTCFLAGS+=-DAST_MODULE=\"core\"
+$(OBJS): _ASTCFLAGS+=-DAST_MODULE=\"core\" -DAST_IN_CORE
libasteriskssl.o: _ASTCFLAGS+=$(OPENSSL_INCLUDE)
More information about the asterisk-commits
mailing list