]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Unit-tests] Fix mac build
authorSeven Du <dujinfang@gmail.com>
Sun, 24 Oct 2021 12:36:52 +0000 (20:36 +0800)
committerGitHub <noreply@github.com>
Sun, 24 Oct 2021 12:36:52 +0000 (15:36 +0300)
* [core] fix build err on Mac
* [mod_av] fix build on macOS

src/mod/applications/mod_av/test/test_avformat.c
tests/unit/switch_rtp.c

index 2c8949472f9ae059dee995026ce703e96886e526..5a0043e6cc73e25e51e5c56695e08f042c42ee34 100644 (file)
@@ -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);
 
index ebe307ad29801d4664f0d7afffbb561cbbf1db03..48c0f80d6bb7915043d41ddbd9e24facd25d741e 100644 (file)
@@ -2,6 +2,10 @@
 #include <switch.h>
 #include <test/switch_test.h>
 
+#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";