mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-03 00:47:34 +08:00
修复编译失败问题
This commit is contained in:
@@ -392,7 +392,7 @@ void API_CALL on_mk_flow_report(const mk_media_info url_info,
|
||||
}
|
||||
|
||||
static int flag = 1;
|
||||
static void on_exit(int sig){
|
||||
static void s_on_exit(int sig){
|
||||
flag = 0;
|
||||
}
|
||||
int main(int argc, char *argv[]) {
|
||||
@@ -425,7 +425,7 @@ int main(int argc, char *argv[]) {
|
||||
mk_events_listen(&events);
|
||||
|
||||
|
||||
signal(SIGINT, on_exit );// 设置退出信号
|
||||
signal(SIGINT, s_on_exit );// 设置退出信号
|
||||
while (flag) {
|
||||
#ifdef _WIN32
|
||||
Sleep(1000);
|
||||
|
||||
Reference in New Issue
Block a user