We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a15a8fb commit 40c75efCopy full SHA for 40c75ef
src/server/shell.rs
@@ -177,7 +177,8 @@ impl ShellSession {
177
178
// Set controlling terminal
179
// TIOCSCTTY with arg 0 means don't steal from another session
180
- if nix::libc::ioctl(0, nix::libc::TIOCSCTTY as nix::libc::c_ulong, 0) < 0 {
+ // Use `as _` to handle type differences between glibc (c_ulong) and musl (c_int)
181
+ if nix::libc::ioctl(0, nix::libc::TIOCSCTTY as _, 0) < 0 {
182
return Err(std::io::Error::last_os_error());
183
}
184
0 commit comments