summaryrefslogtreecommitdiff
path: root/pbx/pbx_ael.c
diff options
context:
space:
mode:
authorSteve Murphy <murf@digium.com>2008-12-17 05:04:56 +0000
committerSteve Murphy <murf@digium.com>2008-12-17 05:04:56 +0000
commit1a37ee4025569e3eb4bb4106f8212dedfd84469d (patch)
tree50d7b3c60da36fd4a23c51144e0e693f83ee9c06 /pbx/pbx_ael.c
parenteaafc968729e76d93b4de0a7b916e489902bf719 (diff)
A possibly "horrible fix" for a "horribly broken"
situation. As stuff shifts around in the asterisk code, the miscellaneous inclusions from the standalone stuff gets broken. There's no easy fix for this situation. I made sure that everything in utils builds without problem ***AND*** that aelparse runs the regressions correctly with the following make menuselect options both on and off: DONT_OPTIMIZE DEBUG_THREADS DEBUG_CHANNEL_LOCKS MALLOC_DEBUG MTX_PROFILE DEBUG_SCHEDULER DEBUG_THREADLOCALS DETECT_DEADLOCKS CHANNEL_TRACE I think from now on, I'm going to #undef all these features in the various utils native files; I guess I could do the same for the copied-in files, surrounded by STANDALONE ifdef. A standalone isn't going to care about threads, mutexes, etc. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@165071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_ael.c')
-rw-r--r--pbx/pbx_ael.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index e60fe251a..92e2bd32d 100644
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -36,6 +36,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <regex.h>
#include <sys/stat.h>
+#ifdef STANDALONE
+#ifdef HAVE_MTX_PROFILE
+static int mtx_prof = -1; /* helps the standalone compile with the mtx_prof flag on */
+#endif
+#endif
#include "asterisk/pbx.h"
#include "asterisk/config.h"
#include "asterisk/module.h"