修复编译失败问题

This commit is contained in:
xiongziliang 2019-12-25 20:13:49 +08:00
parent d59a706cc1
commit 8b23f01509
2 changed files with 4 additions and 4 deletions

View File

@ -392,7 +392,7 @@ void API_CALL on_mk_flow_report(const mk_media_info url_info,
} }
static int flag = 1; static int flag = 1;
static void on_exit(int sig){ static void s_on_exit(int sig){
flag = 0; flag = 0;
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
@ -425,7 +425,7 @@ int main(int argc, char *argv[]) {
mk_events_listen(&events); mk_events_listen(&events);
signal(SIGINT, on_exit );// 设置退出信号 signal(SIGINT, s_on_exit );// 设置退出信号
while (flag) { while (flag) {
#ifdef _WIN32 #ifdef _WIN32
Sleep(1000); Sleep(1000);

View File

@ -96,7 +96,7 @@ void API_CALL on_mk_websocket_session_err(mk_tcp_session session,int code,const
} }
static int flag = 1; static int flag = 1;
static void on_exit(int sig){ static void s_on_exit(int sig){
flag = 0; flag = 0;
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
@ -116,7 +116,7 @@ int main(int argc, char *argv[]) {
mk_websocket_events_listen(&events); mk_websocket_events_listen(&events);
mk_websocket_server_start(80,0); mk_websocket_server_start(80,0);
signal(SIGINT, on_exit );// 设置退出信号 signal(SIGINT, s_on_exit );// 设置退出信号
while (flag) { while (flag) {
#ifdef _WIN32 #ifdef _WIN32
Sleep(1000); Sleep(1000);