Skip to content

Commit

Permalink
Fix macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
iddm committed Nov 14, 2023
1 parent fd08226 commit 1215201
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ impl ThreadPriority {
};

match policy {
#[cfg_attr(
not(any(target_os = "linux", target_os = "android")),
allow(unused_variables)
)]
ThreadSchedulePolicy::Normal(normal) => {
cfg_if::cfg_if! {
if #[cfg(any(target_os = "linux", target_os = "android"))] {
Expand Down

0 comments on commit 1215201

Please sign in to comment.