diff --git a/serial-unix/Cargo.toml b/serial-unix/Cargo.toml index e5301c9..f558ad3 100644 --- a/serial-unix/Cargo.toml +++ b/serial-unix/Cargo.toml @@ -14,5 +14,5 @@ categories = ["hardware-support", "os", "os::unix-apis"] [dependencies] serial-core = { version = "0.4", path = "../serial-core" } libc = "0.2.1" -termios = "0.2.2" -ioctl-rs = "0.1.5" +termios = "0.3" +ioctl-rs = "0.2" diff --git a/serial-unix/README.md b/serial-unix/README.md index a83f302..77180b3 100644 --- a/serial-unix/README.md +++ b/serial-unix/README.md @@ -12,6 +12,7 @@ API. The following platforms are confirmed to be compatible: * Linux (x86_64, armv6l) * OS X (x86_64) * FreeBSD (amd64) +* NetBSD (amd64, evbarm-aarch64) * OpenBSD (amd64) ## Usage diff --git a/serial-unix/src/error.rs b/serial-unix/src/error.rs index 293772d..60d7b5c 100644 --- a/serial-unix/src/error.rs +++ b/serial-unix/src/error.rs @@ -64,7 +64,7 @@ pub fn errno() -> i32 { __dfly_error() } - #[cfg(target_os = "openbsd")] + #[cfg(any(target_os = "openbsd", target_os = "netbsd"))] unsafe fn errno_location() -> *const c_int { extern { fn __errno() -> *const c_int; } __errno() diff --git a/serial/README.md b/serial/README.md index 6f638da..7211ddc 100644 --- a/serial/README.md +++ b/serial/README.md @@ -7,12 +7,14 @@ are supported out of the box. * [Documentation](http://dcuddeback.github.io/serial-rs/serial/) ## Compatibility + The `serial` crate is compatible with Windows and any Unix operating system that implements the termios API. The following platforms are confirmed to be compatible: * Linux (x86_64, armv6l) * OS X (x86_64) * FreeBSD (amd64) +* NetBSD (amd64, evbarm-aarch64) * OpenBSD (amd64) * Windows (x86_64)