Copied from Debian. Description: Fix build of WebRTC on non-Linux systems * Define the WEBRTC_LINUX macro only on Linux, and not on GNU/Hurd or FreeBSD. * Fix type cast in the CurrentThreadId function. Bug-Debian: https://bugs.debian.org/920851 Author: Nicholas Guriev Last-Update: Tue, 29 Jan 2019 23:26:44 +0300 --- a/libtgvoip.gyp +++ b/libtgvoip.gyp @@ -869,20 +869,18 @@ '"<(OS)" == "linux"', { 'defines': [ 'WEBRTC_POSIX', - 'WEBRTC_LINUX', ], 'conditions': [ [ '"(pthread_self()); + return static_cast(pthread_self()); #endif #endif // defined(WEBRTC_POSIX) }