Skip to content

Commit

Permalink
build: add FreeBSD support
Browse files Browse the repository at this point in the history
  • Loading branch information
kubicek authored Oct 25, 2024
1 parent 64a2fc7 commit e3eb773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boringtun/src/sleepyinstant/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use std::time::Duration;
use nix::sys::time::TimeSpec;
use nix::time::{clock_gettime, ClockId};

#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos"))]
#[cfg(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "freebsd"))]
const CLOCK_ID: ClockId = ClockId::CLOCK_MONOTONIC;
#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "tvos")))]
#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "tvos", target_os = "freebsd")))]
const CLOCK_ID: ClockId = ClockId::CLOCK_BOOTTIME;

#[derive(Clone, Copy, Debug)]
Expand Down

0 comments on commit e3eb773

Please sign in to comment.