summaryrefslogtreecommitdiff
path: root/src/sys/termios.rs
diff options
context:
space:
mode:
authorZac Berkowitz <zac.berkowitz@gmail.com>2017-02-26 21:28:00 +0000
committerBryant Mairs <bryant@mai.rs>2017-04-09 07:41:58 -0700
commit219671727fdb354a87d6bf453ced0cdb16bbd232 (patch)
tree9d248eba3ab21d9e359997dd1671c008a8538a47 /src/sys/termios.rs
parenta859ee3c9396dfdb118fcc2c8ecc697e2d303467 (diff)
downloadnix-219671727fdb354a87d6bf453ced0cdb16bbd232.zip
Fixes nix-rust/nix#532
Diffstat (limited to 'src/sys/termios.rs')
-rw-r--r--src/sys/termios.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/termios.rs b/src/sys/termios.rs
index db80cc2d..6ff77747 100644
--- a/src/sys/termios.rs
+++ b/src/sys/termios.rs
@@ -158,7 +158,7 @@ mod ffi {
B7200, B14400, B28800, B57600,
B76800, B115200, B230400};
- #[cfg(any(target_os = "netbsd", target_os = "freebsd"))]
+ #[cfg(target_os = "freebsd")]
use libc::{B460800, B921600};
match s {
@@ -185,9 +185,9 @@ mod ffi {
B76800 => BaudRate::B76800,
B115200 => BaudRate::B115200,
B230400 => BaudRate::B230400,
- #[cfg(any(target_os = "netbsd", target_os = "freebsd"))]
+ #[cfg(target_os = "freebsd")]
B460800 => BaudRate::B460800,
- #[cfg(any(target_os = "netbsd", target_os = "freebsd"))]
+ #[cfg(target_os = "freebsd")]
B921600 => BaudRate::B921600,
b @ _ => unreachable!("Invalid baud constant: {}", b),
}