From 648f67d4c8672538483e8f81b9e66b9999c93db5 Mon Sep 17 00:00:00 2001
From: Joshua Colp <jcolp@digium.com>
Date: Mon, 8 Oct 2007 16:12:21 +0000
Subject: [PATCH] Fix up tree so that it compiles when MTX Profiling is
 enabled. (closes issue #10898) Reported by: snuffy Patches:      
 10898-mtx_prof.diff uploaded by qwell (license 4)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 main/ast_expr2.c   | 2 ++
 res/res_limit.c    | 2 ++
 utils/check_expr.c | 5 +++++
 utils/conf2ael.c   | 4 ++++
 utils/hashtest2.c  | 2 ++
 5 files changed, 15 insertions(+)

diff --git a/main/ast_expr2.c b/main/ast_expr2.c
index eafb914daa..72b88c2e0e 100644
--- a/main/ast_expr2.c
+++ b/main/ast_expr2.c
@@ -145,6 +145,8 @@
 #include <stdio.h>
 #include "asterisk.h"
 
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
 #define FP___PRINTF "%.18Lg"
 #define FP___TYPE    long double
 
diff --git a/res/res_limit.c b/res/res_limit.c
index d8fe8513ae..ca22118363 100644
--- a/res/res_limit.c
+++ b/res/res_limit.c
@@ -21,6 +21,8 @@
 
 #include "asterisk.h"
 
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
diff --git a/utils/check_expr.c b/utils/check_expr.c
index ef0908d73f..9a5c5f67f6 100644
--- a/utils/check_expr.c
+++ b/utils/check_expr.c
@@ -145,6 +145,7 @@ void ast_log(int level, const char *file, int line, const char *function, const
 	fflush(stdout);
 	va_end(vars);
 }
+void ast_add_profile(void);
 void ast_register_file_version(const char *file, const char *version);
 void ast_unregister_file_version(const char *file);
 
@@ -154,6 +155,10 @@ unsigned int check_expr(char* buffer, char* error_report);
 int check_eval(char *buffer, char *error_report);
 void parse_file(const char *fname);
 
+void ast_add_profile(void)
+{
+}
+
 void ast_register_file_version(const char *file, const char *version)
 {
 }
diff --git a/utils/conf2ael.c b/utils/conf2ael.c
index 2f5a58ae1c..312ed700f2 100644
--- a/utils/conf2ael.c
+++ b/utils/conf2ael.c
@@ -81,9 +81,13 @@ char ast_config_AST_SYSTEM_NAME[20] = ""; */
 extern char ast_config_AST_CONFIG_DIR[PATH_MAX];
 
 /* modulation */
+void ast_add_profile(void);
 void ast_register_file_version(void);
 void ast_unregister_file_version(void);
 
+void ast_add_profile(void)
+{
+}
 void ast_register_file_version(void)
 {
 	/* if(!no_comp)
diff --git a/utils/hashtest2.c b/utils/hashtest2.c
index 29c8123d4a..7e10cb70cd 100644
--- a/utils/hashtest2.c
+++ b/utils/hashtest2.c
@@ -30,6 +30,8 @@
 
 #include "asterisk.h"
 
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+
 #include <sys/types.h>
 #include <stdio.h>
 #include <stdlib.h>
-- 
GitLab