Skip to content

Add NetBSD support #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions serial-unix/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 1 addition & 0 deletions serial-unix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion serial-unix/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions serial/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down