mirror of
https://git.freebsd.org/ports.git
synced 2025-05-17 17:43:11 -04:00
11 lines
431 B
Rust
11 lines
431 B
Rust
--- runtime/ops/tty.rs.orig 2020-12-14 21:25:05 UTC
|
|
+++ runtime/ops/tty.rs
|
|
@@ -316,7 +316,7 @@ fn console_size_from_fd(
|
|
// SAFETY: libc calls
|
|
unsafe {
|
|
let mut size: libc::winsize = std::mem::zeroed();
|
|
- if libc::ioctl(fd, libc::TIOCGWINSZ, &mut size as *mut _) != 0 {
|
|
+ if libc::ioctl(fd, libc::TIOCGWINSZ.into(), &mut size as *mut _) != 0 {
|
|
return Err(Error::last_os_error());
|
|
}
|
|
Ok(ConsoleSize {
|