Skip to content

Commit

Permalink
refactor: cfg for sys/time.rs (#2229)
Browse files Browse the repository at this point in the history
* refactor: cfg for sys/time.rs

* fmt
  • Loading branch information
SteveLauC authored Nov 27, 2023
1 parent 2f810de commit 1bd6b90
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/sys/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,7 @@ pub(crate) mod timer {
const TFD_TIMER_CANCEL_ON_SET = libc::TFD_TIMER_CANCEL_ON_SET;
}
}
#[cfg(any(
target_os = "freebsd",
target_os = "netbsd",
target_os = "dragonfly",
target_os = "illumos"
))]
#[cfg(any(freebsdlike, target_os = "netbsd", target_os = "illumos"))]
bitflags! {
/// Flags that are used for arming the timer.
#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
Expand Down

0 comments on commit 1bd6b90

Please sign in to comment.