freebsd-ports/net-im/telegram-desktop/files/patch-Telegram_ThirdParty_libtgvoip_VoIPController.cpp
Kirill Ponomarev 4e2c600ca3 Update to version 1.2.17
PR:		227571
Submitted by:	maintainer
2018-04-17 14:10:49 +00:00

11 lines
428 B
C++

--- Telegram/ThirdParty/libtgvoip/VoIPController.cpp.orig 2018-02-07 04:45:28 UTC
+++ Telegram/ThirdParty/libtgvoip/VoIPController.cpp
@@ -1954,7 +1954,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;