aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-28 22:42:18 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-28 22:42:18 +0000
commit4588fa27df28340def3fc3bb1d5f5d7b3919b071 (patch)
tree7654850de12fcb02d270d55559550703374cd437 /include
parentfd1c37fc0042664ed4eb40983bc8d97bde948e8c (diff)
eliminate compiler warning when DEBUG_CHANNEL_LOCKS is enabled and users of this header file don't also include channel.h
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43952 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/lock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h
index f2fbd16a8..2f63ee183 100644
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -705,6 +705,8 @@ AST_INLINE_API(int ast_atomic_dec_and_test(volatile int *p),
#define ast_channel_trylock(x) ast_mutex_trylock(&x->lock)
#else
+struct ast_channel;
+
/*! \brief Lock AST channel (and print debugging output)
\note You need to enable DEBUG_CHANNEL_LOCKS for this function */
int ast_channel_lock(struct ast_channel *chan);