Skip to content

Commit

Permalink
Auto merge of #4713 - alexcrichton:fix-bsd, r=matklad
Browse files Browse the repository at this point in the history
Fix compilation on more platforms
  • Loading branch information
bors committed Nov 12, 2017
2 parents de48f75 + 51e5899 commit e945a90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/cargo/core/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl ColorChoice {
}
}

#[cfg(unix)]
#[cfg(any(target_os = "linux", target_os = "macos"))]
mod imp {
use std::mem;

Expand All @@ -308,6 +308,13 @@ mod imp {
}
}

#[cfg(all(unix, not(any(target_os = "linux", target_os = "macos"))))]
mod imp {
pub fn stderr_width() -> Option<usize> {
None
}
}

#[cfg(windows)]
mod imp {
use std::mem;
Expand Down

0 comments on commit e945a90

Please sign in to comment.