ports/net-im/telegram-desktop/files/patch-Telegram_ThirdParty_libtgvoip_VoIPController.cpp
Steve Wills a18c06b4e5 net-im/telegram-desktop: update to 1.8.4
PR:		240401
Submitted by:	Henry Hu <henry.hu.sh@gmail.com> (maintainer)
2019-09-13 16:29:36 +00:00

11 lines
428 B
C++

--- Telegram/ThirdParty/libtgvoip/VoIPController.cpp.orig 2019-07-15 12:59:17 UTC
+++ Telegram/ThirdParty/libtgvoip/VoIPController.cpp
@@ -3048,7 +3048,7 @@ static void initMachTimestart() {
#endif
double VoIPController::GetCurrentTime(){
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return ts.tv_sec+(double)ts.tv_nsec/1000000000.0;