mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
The fixes in this commit are mainly to allow compiling of trunk with --enable-dev-mode, mutex profiling, lock debugging, etc. Mainly, the version.c needs to be in the OBJS line; asterisk.h was chosen to have the prototypes for ast_get_version, ast_get_version_num; and the ASTERISK_FILE_VERSION macro needs to be used after including asterisk.h in a few files. I hope I did the right thing. If not, let me know.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
*/
|
||||
|
||||
#include "asterisk.h" /* ast_strdupa */
|
||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#include "asterisk/utils.h" /* ast_strdupa */
|
||||
#include "console_video.h" /* ast_strdupa */
|
||||
|
||||
|
@@ -37,6 +37,7 @@
|
||||
//#define OLD_FFMPEG 1 /* set for old ffmpeg with no swscale */
|
||||
|
||||
#include "asterisk.h"
|
||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#include <sys/ioctl.h>
|
||||
#include "asterisk/cli.h"
|
||||
#include "asterisk/file.h"
|
||||
|
@@ -45,6 +45,7 @@
|
||||
*/
|
||||
|
||||
#include "asterisk.h"
|
||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#include <sys/ioctl.h>
|
||||
#include "asterisk/file.h"
|
||||
#include "asterisk/utils.h" /* ast_calloc */
|
||||
|
@@ -50,6 +50,9 @@
|
||||
|
||||
int ast_set_priority(int); /*!< Provided by asterisk.c */
|
||||
|
||||
const char *ast_get_version(void);
|
||||
const char *ast_get_version_num(void);
|
||||
|
||||
/*!
|
||||
* \brief Register a function to be executed before Asterisk exits.
|
||||
* \param func The callback function to use.
|
||||
|
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "asterisk.h"
|
||||
|
||||
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#include <newt.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/time.h>
|
||||
|
Reference in New Issue
Block a user