Skip to content

Commit 820e64e

Browse files
committed
[cloudflare#420] fix freebsd compilation time error
1 parent 64a2fc7 commit 820e64e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boringtun/src/sleepyinstant/unix.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use std::time::Duration;
33
use nix::sys::time::TimeSpec;
44
use nix::time::{clock_gettime, ClockId};
55

6-
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos"))]
6+
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "freebsd"))]
77
const CLOCK_ID: ClockId = ClockId::CLOCK_MONOTONIC;
8-
#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "tvos")))]
8+
#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "freebsd")))]
99
const CLOCK_ID: ClockId = ClockId::CLOCK_BOOTTIME;
1010

1111
#[derive(Clone, Copy, Debug)]

0 commit comments

Comments
 (0)