git: 865e71116bd5 - main - multimedia/ringrtc: fix build on powerpc*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 01 Jul 2022 06:17:10 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=865e71116bd5a4c500fcfc7f251dfac1b53c342f

commit 865e71116bd5a4c500fcfc7f251dfac1b53c342f
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-06-30 22:45:06 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-07-01 06:17:09 +0000

    multimedia/ringrtc: fix build on powerpc*
    
    In file included from ../../third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc:27:
    /usr/include/sys/sysctl.h:1185:25: error: unknown type name 'u_int'
    int     sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
                                ^
    ../../third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc:89:10: error: unknown type name 'once_flag'
      static once_flag init_timebase_frequency_once;
             ^
    ../../third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc:91:18: error: no member named 'LowLevelCallOnce' in namespace 'absl::base_internal'
      base_internal::LowLevelCallOnce(&init_timebase_frequency_once, [&]() {
      ~~~~~~~~~~~~~~~^
---
 ...rty_abseil-cpp_absl_base_internal_unscaledcycleclock.cc | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/multimedia/ringrtc/files/patch-src_webrtc_src_third__party_abseil-cpp_absl_base_internal_unscaledcycleclock.cc b/multimedia/ringrtc/files/patch-src_webrtc_src_third__party_abseil-cpp_absl_base_internal_unscaledcycleclock.cc
new file mode 100644
index 000000000000..fb15995c2be3
--- /dev/null
+++ b/multimedia/ringrtc/files/patch-src_webrtc_src_third__party_abseil-cpp_absl_base_internal_unscaledcycleclock.cc
@@ -0,0 +1,14 @@
+--- ../../src/webrtc/src/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc.orig	2020-08-09 20:09:49 UTC
++++ ../../src/webrtc/src/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc
+@@ -24,8 +24,10 @@
+ #ifdef __GLIBC__
+ #include <sys/platform/ppc.h>
+ #elif defined(__FreeBSD__)
+-#include <sys/sysctl.h>
++#include "absl/base/call_once.h"
+ #include <sys/types.h>
++#include <sys/sysctl.h>
++#include <threads.h>
+ #endif
+ #endif
+