Build fixes for clang on FreeBSD

This commit is contained in:
Kevin Reinholz committed 2026-05-31 13:27:45 -07:00
1 parent 92adf08caf
commit d6060d4b3b
2 files changed
+6 -2

No files matched your search

+2
View File
@@ -245,6 +245,8 @@ double time_now_unix_utc() {
}
double time_to_unix_utc(double t) {
struct timeval tv;
gettimeofday(&tv, nullptr);
return (double)tv.tv_sec + (double)tv.tv_usec * (1.0 / micros) + t;
}