mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Oops for mgcp and logger fix for old linux
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -899,7 +899,7 @@ static int mgcp_call(struct ast_channel *ast, char *dest, int timeout)
|
|||||||
res = -1;
|
res = -1;
|
||||||
}
|
}
|
||||||
ast_mutex_unlock(&sub->lock);
|
ast_mutex_unlock(&sub->lock);
|
||||||
ast_queue_frame(ast, AST_CONTROL_RINGING);
|
ast_queue_control(ast, AST_CONTROL_RINGING);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
logger.c
2
logger.c
@@ -48,7 +48,7 @@ static int syslog_level_map[] = {
|
|||||||
|
|
||||||
#define MAX_MSG_QUEUE 200
|
#define MAX_MSG_QUEUE 200
|
||||||
|
|
||||||
#ifdef __linux__
|
#if defined(__linux__) && defined(__NR_gettid)
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
#define GETTID() syscall(__NR_gettid)
|
#define GETTID() syscall(__NR_gettid)
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user