diff options
author | Michiel van Baak <michiel@vanbaak.info> | 2009-09-04 14:00:38 +0000 |
---|---|---|
committer | Michiel van Baak <michiel@vanbaak.info> | 2009-09-04 14:00:38 +0000 |
commit | 43f36d9582a0418d1dd8158b74187eb47c5d4b2f (patch) | |
tree | 9b27099efc4223e7826a38fc751e604399d1a58b /include | |
parent | d466658968c7bfb5d5573f2eb7524bb23bc909c8 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/lock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index a23f0344c..a4005d7ca 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 |