diff options
author | Martin Samuelsson <msamuelsson@storvix.eu> | 2023-07-21 15:39:15 +0200 |
---|---|---|
committer | Martin Samuelsson <msamuelsson@storvix.eu> | 2023-07-21 17:14:04 +0200 |
commit | 8e5d9144910efb2b2e9555c7d83270b8c3ca18d7 (patch) | |
tree | c21bb86e72b0581fd570fb2f3de2dc9fd48224cd /src/sys | |
parent | c375a102ac0af0d08c4942ffd81c84b6d6769d08 (diff) | |
download | nix-fix/disable_tcsetattr_illumos.zip |
Disable tcsetattr() on illumos and solarisfix/disable_tcsetattr_illumos
Calling tcsetattr() as currently done by nix is documented undefined
behaviour on illumos, and will always fail.
For details, please see: https://github.com/nix-rust/nix/issues/2071
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/termios.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sys/termios.rs b/src/sys/termios.rs index af29d64d..0614cb5e 100644 --- a/src/sys/termios.rs +++ b/src/sys/termios.rs @@ -1161,6 +1161,7 @@ pub fn tcgetattr<Fd: AsFd>(fd: Fd) -> Result<Termios> { /// `tcsetattr()` reconfigures the given port based on a given `Termios` structure. This change /// takes affect at a time specified by `actions`. Note that this function may return success if /// *any* of the parameters were successfully set, not only if all were set successfully. +#[cfg(not(any(target_os = "illumos", target_os = "solaris",)))] pub fn tcsetattr<Fd: AsFd>( fd: Fd, actions: SetArg, |