summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiels Sascha Reedijk <niels.reedijk@gmail.com>2023-06-17 15:04:46 +0000
committerNiels Sascha Reedijk <niels.reedijk@gmail.com>2023-06-17 15:04:46 +0000
commite63dd8fa5944e945557c1605b633345d07aeea27 (patch)
tree800d404347786d04abe3e5c8b9cb040d0bb1876f /src
parent89b4976fddf713ca54834612e351ae35d86c430a (diff)
downloadnix-e63dd8fa5944e945557c1605b633345d07aeea27.zip
Haiku: `speed_t` is defined as `u8` for 32 and 64 bit systems
Diffstat (limited to 'src')
-rw-r--r--src/sys/termios.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/termios.rs b/src/sys/termios.rs
index b0286f51..694a1338 100644
--- a/src/sys/termios.rs
+++ b/src/sys/termios.rs
@@ -355,9 +355,9 @@ libc_enum! {
/// enum.
///
/// B0 is special and will disable the port.
- #[cfg_attr(all(any(target_os = "haiku"), target_pointer_width = "64"), repr(u8))]
+ #[cfg_attr(target_os = "haiku", repr(u8))]
#[cfg_attr(all(any(target_os = "ios", target_os = "macos"), target_pointer_width = "64"), repr(u64))]
- #[cfg_attr(not(all(any(target_os = "ios", target_os = "macos", target_os = "haiku"), target_pointer_width = "64")), repr(u32))]
+ #[cfg_attr(all(not(all(any(target_os = "ios", target_os = "macos"), target_pointer_width = "64")), not(target_os = "haiku")), repr(u32))]
#[non_exhaustive]
pub enum BaudRate {
B0,