summaryrefslogtreecommitdiff
path: root/www/deno/files/patch-runtime_ops_tty.rs
blob: 2733a82715481a03b9501b62557a2106c8d907bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- runtime/ops/tty.rs.orig	2020-12-14 21:25:05 UTC
+++ runtime/ops/tty.rs
@@ -315,7 +315,7 @@ fn op_console_size(
         let fd = std_file.as_raw_fd();
         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().into());
           }