From ecf4fe0b6f2e3aefdf3926d1196075c8394585b1 Mon Sep 17 00:00:00 2001 From: Niels Sascha Reedijk Date: Wed, 9 May 2018 17:31:41 +0000 Subject: [PATCH] Haiku: there is no setpriority on this platform. --- src/bootstrap/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index ae37d67e5d7..ea974111a0f 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -177,7 +177,7 @@ #[cfg(windows)] mod job; -#[cfg(unix)] +#[cfg(all(unix, not(target_os = "haiku")))] mod job { use libc; @@ -188,7 +188,7 @@ pub unsafe fn setup(build: &mut ::Build) { } } -#[cfg(not(any(unix, windows)))] +#[cfg(any(target_os = "haiku", not(any(unix, windows))))] mod job { pub unsafe fn setup(_build: &mut ::Build) { } -- GitLab