[asterisk-commits] mmichelson: branch 1.4 r114051 - in /branches/1.4: include/asterisk/ main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 10 15:59:50 CDT 2008
Author: mmichelson
Date: Thu Apr 10 15:59:49 2008
New Revision: 114051
URL: http://svn.digium.com/view/asterisk?view=rev&rev=114051
Log:
Fix 1.4 build when LOW_MEMORY is enabled.
Modified:
branches/1.4/include/asterisk/lock.h
branches/1.4/main/utils.c
Modified: branches/1.4/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/lock.h?view=diff&rev=114051&r1=114050&r2=114051
==============================================================================
--- branches/1.4/include/asterisk/lock.h (original)
+++ branches/1.4/include/asterisk/lock.h Thu Apr 10 15:59:49 2008
@@ -141,18 +141,31 @@
* lock info struct. The lock is marked as pending as the thread is waiting
* on the lock. ast_mark_lock_acquired() will mark it as held by this thread.
*/
+#if !defined(LOW_MEMORY)
void ast_store_lock_info(enum ast_lock_type type, const char *filename,
int line_num, const char *func, const char *lock_name, void *lock_addr);
+#else
+#define ast_store_lock_info(I,DONT,CARE,ABOUT,THE,PARAMETERS)
+#endif
+
/*!
* \brief Mark the last lock as acquired
*/
+#if !defined(LOW_MEMORY)
void ast_mark_lock_acquired(void *lock_addr);
+#else
+#define ast_mark_lock_acquired(ignore)
+#endif
/*!
* \brief Mark the last lock as failed (trylock)
*/
+#if !defined(LOW_MEMORY)
void ast_mark_lock_failed(void *lock_addr);
+#else
+#define ast_mark_lock_failed(ignore)
+#endif
/*!
* \brief remove lock info for the current thread
@@ -160,7 +173,11 @@
* this gets called by ast_mutex_unlock so that information on the lock can
* be removed from the current thread's lock info struct.
*/
+#if !defined(LOW_MEMORY)
void ast_remove_lock_info(void *lock_addr);
+#else
+#define ast_remove_lock_info(ignore)
+#endif
static void __attribute__((constructor)) init_empty_mutex(void)
{
Modified: branches/1.4/main/utils.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/utils.c?view=diff&rev=114051&r1=114050&r2=114051
==============================================================================
--- branches/1.4/main/utils.c (original)
+++ branches/1.4/main/utils.c Thu Apr 10 15:59:49 2008
@@ -1354,8 +1354,10 @@
{
base64_init();
#ifdef DEBUG_THREADS
+#if !defined(LOW_MEMORY)
ast_cli_register_multiple(utils_cli, sizeof(utils_cli) / sizeof(utils_cli[0]));
#endif
+#endif
return 0;
}
More information about the asterisk-commits
mailing list