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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ termios definitions for the following platforms:

* Linux (x86_64, armv6l)
* Android (x86)
* OS X (x86_64)
* macOS (x86_64, arm64)
* iOS (armv7, arm64)
* FreeBSD (amd64)
* OpenBSD (amd64)
* NetBSD (amd64)
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
//! cfsetspeed(termios, termios::os::linux::B4000000)
//! }
//!
//! #[cfg(target_os = "macos")]
//! #[cfg(any(target_os = "macos", target_os = "ios"))]
//! fn set_fastest_speed(termios: &mut Termios) -> io::Result<()> {
//! cfsetspeed(termios, termios::os::macos::B230400)
//! cfsetspeed(termios, termios::os::darwin::B230400)
//! }
//!
//! #[cfg(target_os = "freebsd")]
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions src/os/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

#[cfg(target_os = "linux")] pub use self::linux as target;
#[cfg(target_os = "android")] pub use self::android as target;
#[cfg(target_os = "macos")] pub use self::macos as target;
#[cfg(target_os = "ios")] pub use self::darwin as target;
#[cfg(target_os = "macos")] pub use self::darwin as target;
#[cfg(target_os = "freebsd")] pub use self::freebsd as target;
#[cfg(target_os = "openbsd")] pub use self::openbsd as target;
#[cfg(target_os = "netbsd")] pub use self::netbsd as target;
Expand All @@ -12,7 +13,8 @@

#[cfg(target_os = "linux")] pub mod linux;
#[cfg(target_os = "android")] pub mod android;
#[cfg(target_os = "macos")] pub mod macos;
#[cfg(target_os = "ios")] pub mod darwin;
#[cfg(target_os = "macos")] pub mod darwin;
#[cfg(target_os = "freebsd")] pub mod freebsd;
#[cfg(target_os = "openbsd")] pub mod openbsd;
#[cfg(target_os = "netbsd")] pub mod netbsd;
Expand Down