From: Michiel van Baak Date: Fri, 4 Sep 2009 14:00:38 +0000 (+0000) Subject: make sure canlog is set so we can compile with DEBUG_THREADS enabled on OpenBSD X-Git-Tag: 11.0.0-beta1~4244 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43f36d9582a0418d1dd8158b74187eb47c5d4b2f;p=thirdparty%2Fasterisk.git make sure canlog is set so we can compile with DEBUG_THREADS enabled on OpenBSD git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@216437 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index a23f0344cc..a4005d7ca2 100644 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -1556,6 +1556,7 @@ static inline int _ast_rwlock_tryrdlock(ast_rwlock_t *t, const char *name, { int res; struct ast_lock_track *lt = &t->track; + int canlog = strcmp(filename, "logger.c") & t->tracking; #ifdef HAVE_BKTR struct ast_bt *bt = NULL; #endif @@ -1614,6 +1615,7 @@ static inline int _ast_rwlock_trywrlock(ast_rwlock_t *t, const char *name, { int res; struct ast_lock_track *lt= &t->track; + int canlog = strcmp(filename, "logger.c") & t->tracking; #ifdef HAVE_BKTR struct ast_bt *bt = NULL; #endif