[pulseaudio-commits] [Git][pulseaudio/webrtc-audio-processing][master] Add support for non-Linux GNU
Tanu Kaskinen
gitlab at gitlab.freedesktop.org
Sun Sep 8 08:44:23 UTC 2019
Tanu Kaskinen pushed to branch master at PulseAudio / webrtc-audio-processing
Commits:
9def8cf1 by Svante Signell at 2019-08-31T21:00:29Z
Add support for non-Linux GNU
GNU/Hurd and GNU/kFreeBSD have basically the same userland as GNU/Linux,
just not the same kernel.
- - - - -
2 changed files:
- configure.ac
- webrtc/base/platform_thread.cc
Changes:
=====================================
configure.ac
=====================================
@@ -63,6 +63,12 @@ AS_CASE(["${host}"],
OS_LDFLAGS="-lrt -lpthread"
HAVE_POSIX=1
],
+ [*-k*bsd-gnu* | *-*gnu*],
+ [
+ OS_CFLAGS="-DWEBRTC_GNU"
+ PLATFORM_CFLAGS="-DWEBRTC_POSIX"
+ HAVE_POSIX=1
+ ],
[*-*darwin*],
[
OS_CFLAGS="-DWEBRTC_MAC -DWEBRTC_THREAD_RR -DWEBRTC_CLOCK_TYPE_REALTIME"
=====================================
webrtc/base/platform_thread.cc
=====================================
@@ -17,6 +17,8 @@
#if defined(WEBRTC_LINUX)
#include <sys/prctl.h>
#include <sys/syscall.h>
+#elif defined(WEBRTC_GNU)
+#include <sys/syscall.h>
#endif
namespace rtc {
@@ -32,6 +34,8 @@ PlatformThreadId CurrentThreadId() {
ret = syscall(__NR_gettid);
#elif defined(WEBRTC_ANDROID)
ret = gettid();
+#elif defined(WEBRTC_GNU)
+ ret = pthread_self();
#else
// Default implementation for nacl and solaris.
ret = reinterpret_cast<pid_t>(pthread_self());
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/commit/9def8cf10d3c97640d32f1328535e881288f700f
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/commit/9def8cf10d3c97640d32f1328535e881288f700f
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20190908/fecfcf13/attachment-0001.html>
More information about the pulseaudio-commits
mailing list