Skip to content
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
1 change: 1 addition & 0 deletions serial-unix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ API. The following platforms are confirmed to be compatible:
* OS X (x86_64)
* FreeBSD (amd64)
* OpenBSD (amd64)
* Haiku (amd64)

## Usage

Expand Down
6 changes: 6 additions & 0 deletions serial-unix/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ pub fn errno() -> i32 {
__errno()
}

#[cfg(target_os = "haiku")]
unsafe fn errno_location() -> *const c_int {
extern { fn _errnop() -> *const c_int; }
_errnop()
}

#[cfg(any(target_os = "linux", target_os = "android"))]
unsafe fn errno_location() -> *const c_int {
extern { fn __errno_location() -> *const c_int; }
Expand Down
1 change: 1 addition & 0 deletions serial/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ termios API. The following platforms are confirmed to be compatible:
* FreeBSD (amd64)
* OpenBSD (amd64)
* Windows (x86_64)
* Haiku (x86_64)

## Usage
Add `serial` as a dependency in `Cargo.toml`:
Expand Down