summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2006-09-28 22:43:24 +0000
committerKevin P. Fleming <kpfleming@digium.com>2006-09-28 22:43:24 +0000
commitccc221ed79d9aaaec6b1d0b6016322e99e4aa833 (patch)
tree448ad72ef51132d0e73af4daf94a425f13dddd5c /include
parente2a52816fc41a8c243375bdc0b80523ce3599d76 (diff)
Merged revisions 43952 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r43952 | kpfleming | 2006-09-28 17:42:18 -0500 (Thu, 28 Sep 2006) | 2 lines eliminate compiler warning when DEBUG_CHANNEL_LOCKS is enabled and users of this header file don't also include channel.h ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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);