From b438f607879637d2b7b43b08c7bd787d7b532693 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Sun, 24 Oct 2021 11:29:20 +0800 Subject: [PATCH 1/2] [core] fix build err on Mac --- tests/unit/switch_rtp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/switch_rtp.c b/tests/unit/switch_rtp.c index ebe307ad298..48c0f80d6bb 100644 --- a/tests/unit/switch_rtp.c +++ b/tests/unit/switch_rtp.c @@ -2,6 +2,10 @@ #include #include +#ifndef MSG_CONFIRM +#define MSG_CONFIRM 0 +#endif + static const char *rx_host = "127.0.0.1"; static switch_port_t rx_port = 1234; static const char *tx_host = "127.0.0.1"; From d627aa5c34d7286d614b160c6aa7d5064515137b Mon Sep 17 00:00:00 2001 From: Seven Du Date: Sun, 24 Oct 2021 14:09:40 +0800 Subject: [PATCH 2/2] [mod_av] fix build on macOS --- src/mod/applications/mod_av/test/test_avformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_av/test/test_avformat.c b/src/mod/applications/mod_av/test/test_avformat.c index 2c8949472f9..5a0043e6cc7 100644 --- a/src/mod/applications/mod_av/test/test_avformat.c +++ b/src/mod/applications/mod_av/test/test_avformat.c @@ -229,7 +229,7 @@ FST_CORE_BEGIN("conf") while (1) { status = switch_core_file_read(&fh, data, &len); if (status != SWITCH_STATUS_SUCCESS) break; - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "%d\n", len); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "read: %" SWITCH_SIZE_T_FMT "\n", len); // fst_check(len == SAMPLES); status = switch_core_file_read_video(&fh, &frame, SVR_FLUSH);