From feb8fe63507a41221745addcaf2e6d674d7aa6ed Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Sun, 8 Aug 2021 18:52:21 -0400 Subject: [PATCH] Remove some actually unsupported termios iflags on redox --- CHANGELOG.md | 4 ++++ Cargo.toml | 2 +- src/sys/termios.rs | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4478875c67..a00e04fdf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Removed +- Removed a couple of termios constants on redox that were never actually + supported. + (#[1483](https://github.com/nix-rust/nix/pull/1483)) + ## [0.20.0] - 20 February 2021 ### Added diff --git a/Cargo.toml b/Cargo.toml index 94042a80dc..54b106c143 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ targets = [ ] [dependencies] -libc = { version = "0.2.82", features = [ "extra_traits" ] } +libc = { version = "0.2.99", features = [ "extra_traits" ] } bitflags = ">= 1.1.0, < 1.3.0" cfg-if = "1.0" diff --git a/src/sys/termios.rs b/src/sys/termios.rs index c30de80d4b..9514836049 100644 --- a/src/sys/termios.rs +++ b/src/sys/termios.rs @@ -569,7 +569,9 @@ libc_bitflags! { ICRNL; IXON; IXOFF; + #[cfg(not(target_os = "redox"))] IXANY; + #[cfg(not(target_os = "redox"))] IMAXBEL; #[cfg(any(target_os = "android", target_os = "linux", target_os = "macos"))] IUTF8;