diff options
Diffstat (limited to 'utils/check_expr.c')
-rw-r--r-- | utils/check_expr.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/utils/check_expr.c b/utils/check_expr.c index 7b013f163..5293acc26 100644 --- a/utils/check_expr.c +++ b/utils/check_expr.c @@ -86,16 +86,25 @@ enum ast_lock_type { }; #endif #if !defined(LOW_MEMORY) +#ifdef HAVE_BKTR void ast_store_lock_info(enum ast_lock_type type, const char *filename, - int line_num, const char *func, const char *lock_name, void *lock_addr); + int line_num, const char *func, const char *lock_name, void *lock_addr, struct ast_bt *bt); void ast_store_lock_info(enum ast_lock_type type, const char *filename, - int line_num, const char *func, const char *lock_name, void *lock_addr) + int line_num, const char *func, const char *lock_name, void *lock_addr, struct ast_bt *bt) { /* not a lot to do in a standalone w/o threading! */ } -void ast_mark_lock_acquired(void *); -void ast_mark_lock_acquired(void *foo) +void ast_remove_lock_info(void *lock_addr, struct ast_bt *bt); +void ast_remove_lock_info(void *lock_addr, struct ast_bt *bt) +{ + /* not a lot to do in a standalone w/o threading! */ +} +#else +void ast_store_lock_info(enum ast_lock_type type, const char *filename, + int line_num, const char *func, const char *lock_name, void *lock_addr); +void ast_store_lock_info(enum ast_lock_type type, const char *filename, + int line_num, const char *func, const char *lock_name, void *lock_addr) { /* not a lot to do in a standalone w/o threading! */ } @@ -105,6 +114,13 @@ void ast_remove_lock_info(void *lock_addr) { /* not a lot to do in a standalone w/o threading! */ } +#endif /* HAVE_BKTR */ + +void ast_mark_lock_acquired(void *); +void ast_mark_lock_acquired(void *foo) +{ + /* not a lot to do in a standalone w/o threading! */ +} #endif static int global_lineno = 1; |