mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 19:52:48 +00:00
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
This commit is contained in:
@@ -145,6 +145,8 @@
|
||||
#include <stdio.h>
|
||||
#include "asterisk.h"
|
||||
|
||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
|
||||
#define FP___PRINTF "%.18Lg"
|
||||
#define FP___TYPE long double
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "asterisk.h"
|
||||
|
||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
@@ -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)
|
||||
{
|
||||
}
|
||||
|
@@ -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)
|
||||
|
@@ -30,6 +30,8 @@
|
||||
|
||||
#include "asterisk.h"
|
||||
|
||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
Reference in New Issue
Block a user