use cfg_if::cfg_if;
cfg_if! {
if #[cfg(any(
target_arch = "x86_64",
target_arch = "x86",
target_arch = "arm",
target_arch = "aarch64",
target_arch = "riscv32",
target_arch = "riscv64",
target_arch = "s390x",
))]
{
pub const BOTHER: libc::speed_t = 0o010000;
} else if #[cfg(any(
target_arch = "mips",
target_arch = "mips64",
))]
{
pub const BOTHER: libc::speed_t = 0o010000;
} else if #[cfg(any(
target_arch = "sparc",
target_arch = "sparc64",
))]
{
pub const BOTHER: libc::speed_t = 0x1000;
}
}
cfg_if! {
if #[cfg(all(
any(
target_arch = "mips",
target_arch = "mips64",
),
not(target_env = "gnu"),
))]
{
pub const TIOCMBIS: u64 = 0x741B;
pub const TIOCMBIC: u64 = 0x741C;
pub const TIOCMGET: u64 = 0x741D;
pub const TIOCM_RTS: libc::c_int = 0x004;
pub const TIOCM_CTS: libc::c_int = 0x040;
pub const TIOCM_DTR: libc::c_int = 0x002;
pub const TIOCM_DSR: libc::c_int = 0x400;
pub const TIOCM_RI: libc::c_int = 0x200;
pub const TIOCM_CD: libc::c_int = 0x100;
} else {
pub use libc::TIOCMBIS;
pub use libc::TIOCMBIC;
pub use libc::TIOCMGET;
pub use libc::TIOCM_RTS;
pub use libc::TIOCM_CTS;
pub use libc::TIOCM_DTR;
pub use libc::TIOCM_DSR;
pub use libc::TIOCM_RI;
pub use libc::TIOCM_CD;
}
}