blob: 1b19e7c3c042f938fa481fdc0feafb16d91227d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- Telegram/ThirdParty/libtgvoip/VoIPController.cpp.orig 2020-02-12 13:11:18 UTC
+++ Telegram/ThirdParty/libtgvoip/VoIPController.cpp
@@ -3005,7 +3005,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;
|