aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/lock.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-11 21:42:13 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-11 21:42:13 +0000
commit60608dc2e92d480532c23e87dc0d5c52216e75ee (patch)
tree94ad4d364fd9d565f8858864f85a4f024f985b97 /include/asterisk/lock.h
parent43eaa8e30287b6e263033edd292de747755dd717 (diff)
suppress warnings when building with DEBUG_CHANNEL_LOCKS (issue #7330, casper)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33550 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/lock.h')
-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 904a7e64e..db85c497b 100644
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -782,6 +782,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);