From 530f2081df195be9fc851379614cbdf9166aa0dd Mon Sep 17 00:00:00 2001 From: Mathis Logemann Date: Fri, 12 Jan 2024 15:43:08 +0100 Subject: [PATCH 1/2] Find cmake threads even when the test are excluded. --- cmake/FindDependencies.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmake/FindDependencies.cmake b/cmake/FindDependencies.cmake index 068c30b6..c3f8d7a4 100644 --- a/cmake/FindDependencies.cmake +++ b/cmake/FindDependencies.cmake @@ -1,9 +1,9 @@ -if (NOT UVGRTP_DISABLE_TESTS) - # PThread - set(CMAKE_THREAD_PREFER_PTHREAD TRUE) - set(THREADS_PREFER_PTHREAD_FLAG TRUE) - find_package( Threads REQUIRED ) +# PThread +set(CMAKE_THREAD_PREFER_PTHREAD TRUE) +set(THREADS_PREFER_PTHREAD_FLAG TRUE) +find_package( Threads REQUIRED ) +if (NOT UVGRTP_DISABLE_TESTS) # Git find_package(Git) From 8a976f07a9aa6e356509e0f0e7253175a837adfa Mon Sep 17 00:00:00 2001 From: Mathis Logemann Date: Fri, 12 Jan 2024 15:43:37 +0100 Subject: [PATCH 2/2] include cstdint for gcc13 compability --- include/uvgrtp/media_stream.hh | 1 + src/crypto.hh | 1 + 2 files changed, 2 insertions(+) diff --git a/include/uvgrtp/media_stream.hh b/include/uvgrtp/media_stream.hh index 4e66dac3..bec3a35e 100644 --- a/include/uvgrtp/media_stream.hh +++ b/include/uvgrtp/media_stream.hh @@ -6,6 +6,7 @@ #include #include #include +#include #ifndef _WIN32 #include diff --git a/src/crypto.hh b/src/crypto.hh index 57262d0e..acbbdc99 100644 --- a/src/crypto.hh +++ b/src/crypto.hh @@ -43,6 +43,7 @@ #endif // __cplusplus #include +#include namespace uvgrtp {