We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3252d9 commit 984d20cCopy full SHA for 984d20c
boringtun/src/sleepyinstant/unix.rs
@@ -3,9 +3,9 @@ use std::time::Duration;
3
use nix::sys::time::TimeSpec;
4
use nix::time::{clock_gettime, ClockId};
5
6
-#[cfg(any(target_os = "macos", target_os = "ios"))]
+#[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))]
7
const CLOCK_ID: ClockId = ClockId::CLOCK_MONOTONIC;
8
-#[cfg(not(any(target_os = "macos", target_os = "ios")))]
+#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "freebsd")))]
9
const CLOCK_ID: ClockId = ClockId::CLOCK_BOOTTIME;
10
11
#[derive(Clone, Copy, Debug)]
0 commit comments