| 1 | //! Types for the `termios` module. |
|---|---|
| 2 | |
| 3 | #![allow(non_camel_case_types)] |
| 4 | |
| 5 | use crate::ffi; |
| 6 | |
| 7 | // We don't want to use `tcflag_t` directly so we don't expose linux_raw_sys |
| 8 | // publicly. It appears to be `c_ulong `on SPARC and `c_uint` everywhere else. |
| 9 | |
| 10 | #[cfg(target_arch = "sparc")] |
| 11 | pub type tcflag_t = ffi::c_ulong; |
| 12 | #[cfg(not(target_arch = "sparc"))] |
| 13 | pub type tcflag_t = ffi::c_uint; |
| 14 |
