Skip to content

Commit 7d8cb87

Browse files
author
Bryant Mairs
committed
Fix B460800 and B921600 baud rates for netbsd
1 parent 22a4819 commit 7d8cb87

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
106106
- Fix potential memory corruption on non-Linux platforms when using
107107
`sendmsg`/`recvmsg`, caused by mismatched `msghdr` definition.
108108
([#648](https://github.com/nix-rust/nix/pull/648))
109+
- Expose 460800 and 921600 baud rates on NetBSD
110+
([#837](https://github.com/nix-rust/nix/pull/837))
109111

110112
### Removed
111113
- The syscall module has been removed. This only exposed enough functionality for

src/sys/termios.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,18 +224,18 @@ libc_enum!{
224224
B115200,
225225
B230400,
226226
#[cfg(any(target_os = "android",
227-
target_os = "freebsd",
228-
target_os = "linux",
229-
taget_os = "netbsd"))]
227+
target_os = "freebsd",
228+
target_os = "linux",
229+
target_os = "netbsd"))]
230230
B460800,
231231
#[cfg(any(target_os = "android", target_os = "linux"))]
232232
B500000,
233233
#[cfg(any(target_os = "android", target_os = "linux"))]
234234
B576000,
235235
#[cfg(any(target_os = "android",
236-
target_os = "freebsd",
237-
target_os = "linux",
238-
taget_os = "netbsd"))]
236+
target_os = "freebsd",
237+
target_os = "linux",
238+
target_os = "netbsd"))]
239239
B921600,
240240
#[cfg(any(target_os = "android", target_os = "linux"))]
241241
B1000000,
@@ -323,7 +323,7 @@ impl From<libc::speed_t> for BaudRate {
323323
#[cfg(any(target_os = "android",
324324
target_os = "freebsd",
325325
target_os = "linux",
326-
taget_os = "netbsd"))]
326+
target_os = "netbsd"))]
327327
B460800 => BaudRate::B460800,
328328
#[cfg(any(target_os = "android", target_os = "linux"))]
329329
B500000 => BaudRate::B500000,
@@ -332,7 +332,7 @@ impl From<libc::speed_t> for BaudRate {
332332
#[cfg(any(target_os = "android",
333333
target_os = "freebsd",
334334
target_os = "linux",
335-
taget_os = "netbsd"))]
335+
target_os = "netbsd"))]
336336
B921600 => BaudRate::B921600,
337337
#[cfg(any(target_os = "android", target_os = "linux"))]
338338
B1000000 => BaudRate::B1000000,

0 commit comments

Comments
 (0)