diff --git a/components/esp_webrtc/impl/peer_default/CMakeLists.txt b/components/esp_webrtc/impl/peer_default/CMakeLists.txt index 2af35cf..3fb4615 100644 --- a/components/esp_webrtc/impl/peer_default/CMakeLists.txt +++ b/components/esp_webrtc/impl/peer_default/CMakeLists.txt @@ -2,6 +2,6 @@ idf_component_register(INCLUDE_DIRS ./include) get_filename_component(BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR} NAME) add_prebuilt_library(${BASE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/libs/${IDF_TARGET}/libpeer_default.a" - PRIV_REQUIRES ${BASE_DIR} esp_timer) + PRIV_REQUIRES ${BASE_DIR} esp_timer espressif__esp_libsrtp) target_link_libraries(${COMPONENT_LIB} INTERFACE "-L ${CMAKE_CURRENT_SOURCE_DIR}/libs/${IDF_TARGET}") target_link_libraries(${COMPONENT_LIB} INTERFACE peer_default) diff --git a/components/media_lib_sal/port/media_lib_os_freertos.c b/components/media_lib_sal/port/media_lib_os_freertos.c index d248d59..aea0527 100644 --- a/components/media_lib_sal/port/media_lib_os_freertos.c +++ b/components/media_lib_sal/port/media_lib_os_freertos.c @@ -40,8 +40,12 @@ #include "esp_idf_version.h" #if CONFIG_FREERTOS_ENABLE_TASK_SNAPSHOT +#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0)) +#include "esp_private/freertos_debug.h" +#else #include "freertos/task_snapshot.h" #endif +#endif #ifdef __XTENSA__ #include "esp_debug_helpers.h"