aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2019-06-17 08:36:27 +0000
committerJan Beich <jbeich@FreeBSD.org>2019-06-17 08:36:27 +0000
commit234ec471745291ff99705203deb89e0f86bcb5d6 (patch)
treef60c514d9b374340114b9a1e61a4e3a7a149de64 /audio
parentedc42f3c38101cea58c0f69ccf772c5103697878 (diff)
downloadports-234ec471745291ff99705203deb89e0f86bcb5d6.tar.gz
ports-234ec471745291ff99705203deb89e0f86bcb5d6.zip
Notes
Diffstat (limited to 'audio')
-rw-r--r--audio/webrtc-audio-processing/files/patch-webrtc_base_platform__thread.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/audio/webrtc-audio-processing/files/patch-webrtc_base_platform__thread.cc b/audio/webrtc-audio-processing/files/patch-webrtc_base_platform__thread.cc
index c3d07a26c1e2..966592b0e42a 100644
--- a/audio/webrtc-audio-processing/files/patch-webrtc_base_platform__thread.cc
+++ b/audio/webrtc-audio-processing/files/patch-webrtc_base_platform__thread.cc
@@ -16,13 +16,11 @@
namespace rtc {
PlatformThreadId CurrentThreadId() {
-@@ -32,9 +38,17 @@ PlatformThreadId CurrentThreadId() {
+@@ -32,9 +38,15 @@ PlatformThreadId CurrentThreadId() {
ret = syscall(__NR_gettid);
#elif defined(WEBRTC_ANDROID)
ret = gettid();
-+#elif defined(__DragonFly__) // WEBRTC_BSD
-+ ret = lwp_gettid();
-+#elif defined(__FreeBSD__) // WEBRTC_BSD
++#elif defined(__DragonFly__) || defined(__FreeBSD__) // WEBRTC_BSD
+ ret = pthread_getthreadid_np();
+#elif defined(__NetBSD__) // WEBRTC_BSD
+ ret = _lwp_self();