net-im/tg_owt: fix build when devel/abseil installed

Resurrect the patch that helps resolve a build issue when
devel/abseil installed in the system.
While I'm here regen another patch.

Fixes:	3637dcfb11
This commit is contained in:
Sergey A. Osokin 2023-01-11 12:28:56 -05:00
parent 2d493d4ae3
commit 19aebafb74
2 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,12 @@
--- cmake/external.cmake.orig 2023-01-11 16:35:01 UTC
+++ cmake/external.cmake
@@ -120,6 +120,9 @@ function(link_libabsl target_name)
absl::type_traits
absl::variant
)
+ find_package(PkgConfig REQUIRED)
+ pkg_check_modules(ABSL REQUIRED QUIET absl_flags)
+ target_include_directories(${target_name} PRIVATE ${ABSL_INCLUDE_DIRS})
endif()
endif()
if (NOT absl_FOUND)

View File

@ -1,4 +1,4 @@
--- src/common_audio/wav_header.cc.orig 2022-02-09 19:21:53 UTC
--- src/common_audio/wav_header.cc.orig 2023-01-05 05:48:49 UTC
+++ src/common_audio/wav_header.cc
@@ -26,10 +26,6 @@
namespace webrtc {
@ -11,7 +11,7 @@
#pragma pack(2)
struct ChunkHeader {
uint32_t ID;
@@ -119,9 +115,22 @@ uint32_t PackFourCC(char a, char b, char c, char d) {
@@ -113,9 +109,22 @@ uint32_t PackFourCC(char a, char b, char c, char d) {
return packed_value;
}