We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e53d81d commit 2f3c85fCopy full SHA for 2f3c85f
boringtun/src/sleepyinstant/unix.rs
@@ -3,9 +3,19 @@ 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", target_os = "tvos"))]
+#[cfg(any(
7
+ target_os = "macos",
8
+ target_os = "ios",
9
+ target_os = "tvos",
10
+ target_os = "freebsd"
11
+))]
12
const CLOCK_ID: ClockId = ClockId::CLOCK_MONOTONIC;
-#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "tvos")))]
13
+#[cfg(not(any(
14
15
16
17
18
+)))]
19
const CLOCK_ID: ClockId = ClockId::CLOCK_BOOTTIME;
20
21
#[derive(Clone, Copy, Debug)]
0 commit comments