From: Kevin P. Fleming Date: Thu, 28 Sep 2006 22:42:18 +0000 (+0000) Subject: eliminate compiler warning when DEBUG_CHANNEL_LOCKS is enabled and users of this... X-Git-Tag: 1.4.0-beta3~130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69528cec153fa380d56604ae6f3410d4df1b4a40;p=thirdparty%2Fasterisk.git 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/branches/1.4@43952 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index f2fbd16a82..2f63ee183e 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);