Skip to content

Commit e945a90

Browse files
committed
Auto merge of #4713 - alexcrichton:fix-bsd, r=matklad
Fix compilation on more platforms
2 parents de48f75 + 51e5899 commit e945a90

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/cargo/core/shell.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl ColorChoice {
287287
}
288288
}
289289

290-
#[cfg(unix)]
290+
#[cfg(any(target_os = "linux", target_os = "macos"))]
291291
mod imp {
292292
use std::mem;
293293

@@ -308,6 +308,13 @@ mod imp {
308308
}
309309
}
310310

311+
#[cfg(all(unix, not(any(target_os = "linux", target_os = "macos"))))]
312+
mod imp {
313+
pub fn stderr_width() -> Option<usize> {
314+
None
315+
}
316+
}
317+
311318
#[cfg(windows)]
312319
mod imp {
313320
use std::mem;

0 commit comments

Comments
 (0)