diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index ae37d67e5d7bc8310ccd9af5598be8ce70d00902..ea974111a0fded254bb4544466dc20f2d98d87f4 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) { }