fix the build of func_realtime and aelparse with MTX_PROFILE enabled
authorRussell Bryant <russell@russellbryant.com>
Sat, 20 May 2006 00:41:36 +0000 (00:41 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 20 May 2006 00:41:36 +0000 (00:41 +0000)
(issue #7187, #7188, casper)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28895 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_realtime.c
utils/ael_main.c

index b974c29..bf61e41 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "asterisk.h"
 
-/* ASTERISK_FILE_VERSION(__FILE__, "$Revision$") */
+ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
 #include "asterisk/file.h"
 #include "asterisk/channel.h"
index 4e875e6..55e4dda 100644 (file)
@@ -1,6 +1,7 @@
 #include <sys/types.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdarg.h>
 #include <string.h>
 #include <locale.h>
 #include <ctype.h>
 #include <limits.h>
 
 #include "asterisk/ast_expr.h"
-#include "asterisk/logger.h"
 #include "asterisk/module.h"
-#include "asterisk/channel.h"
-#include "asterisk/app.h"
 #include "asterisk/ael_structs.h"
 
 #define AST_CONFIG_MAX_PATH 255
@@ -25,6 +23,7 @@ char last_exten[18000];
 char ast_config_AST_CONFIG_DIR[AST_CONFIG_MAX_PATH];
 char ast_config_AST_VAR_DIR[AST_CONFIG_MAX_PATH];
 
+void ast_add_profile(void);
 void ast_cli_register_multiple(void);
 void ast_register_file_version(void);
 void ast_unregister_file_version(void);
@@ -54,6 +53,12 @@ struct ast_app *pbx_findapp(const char *app)
        return (struct ast_app*)1; /* so as not to trigger an error */
 }
 
+void ast_add_profile(void)
+{
+       if (!no_comp)
+               printf("Executed ast_add_profile();\n");
+}
+
 void ast_cli_register_multiple(void)
 {
        if(!no_comp)