diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-29 12:12:07 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-29 12:12:07 +0000 |
commit | fbdb5ab9e626c212baf6ace1e347676e5cf46bf8 (patch) | |
tree | 91c13fe34c64ff679b64b0edf2473397939ae6bb /utils | |
parent | e99b6bfc85aed2ae9738e460395abcccb0a18c34 (diff) |
Avoid build warning when execinfo.h isn't available.
(closes issue #12751)
Reported by: ys
Patches:
check_expr.diff uploaded by ys (license 281)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118911 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils')
-rw-r--r-- | utils/check_expr.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/utils/check_expr.c b/utils/check_expr.c index 5c2144c12..e533e381a 100644 --- a/utils/check_expr.c +++ b/utils/check_expr.c @@ -100,6 +100,13 @@ void ast_remove_lock_info(void *lock_addr, struct ast_bt *bt) { /* not a lot to do in a standalone w/o threading! */ } + +int ast_bt_get_addresses(struct ast_bt *bt); +int ast_bt_get_addresses(struct ast_bt *bt) +{ + /* Suck it, you stupid utils directory! */ + return 0; +} #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); @@ -123,13 +130,6 @@ void ast_mark_lock_acquired(void *foo) } #endif -int ast_bt_get_addresses(struct ast_bt *bt); -int ast_bt_get_addresses(struct ast_bt *bt) -{ - /* Suck it, you stupid utils directory! */ - return 0; -} - static int global_lineno = 1; static int global_expr_count=0; static int global_expr_max_size=0; |