mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user