We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c1b1c commit e3bb695Copy full SHA for e3bb695
src/cargo/core/shell.rs
@@ -377,6 +377,8 @@ mod imp {
377
pub fn stderr_width() -> Option<usize> {
378
unsafe {
379
let mut winsize: libc::winsize = mem::zeroed();
380
+ // The .into() here is needed for FreeBSD which defines TIOCGWINSZ
381
+ // as c_uint but ioctl wants c_ulong.
382
if libc::ioctl(libc::STDERR_FILENO, libc::TIOCGWINSZ.into(), &mut winsize) < 0 {
383
return None;
384
}
0 commit comments