Skip to content

Commit

Permalink
fix: libc int types for osx
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Apr 23, 2023
1 parent 31f4c4a commit 754fd46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/src/pty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl Pty {
&mut slave,
ptr::null_mut(),
ptr::null(),
&size.into(),
&mut size.into(),
)
.to_result()
.context(PTY_ERR)?;
Expand Down Expand Up @@ -204,7 +204,7 @@ impl Pty {
})?;

// Set this process as the controling terminal
libc::ioctl(0, libc::TIOCSCTTY, 1)
libc::ioctl(0, libc::TIOCSCTTY as u64, 1)
.to_result()
.map_err(|e| {
io::Error::new(
Expand Down

0 comments on commit 754fd46

Please sign in to comment.