diff options
author | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-04 14:00:38 +0000 |
---|---|---|
committer | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-04 14:00:38 +0000 |
commit | 0e511a12ba5ea0c4b3329e170dc1dbf8b70b4ece (patch) | |
tree | 9b27099efc4223e7826a38fc751e604399d1a58b /include | |
parent | 2b498b135042ebec6699505c5407d3b953c7a49f (diff) |
make sure canlog is set so we can compile with DEBUG_THREADS enabled on OpenBSD
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@216437 f38db490-d61c-443f-a65b-d21fe96a405b
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 |