Skip to content

Commit e63dd8f

Browse files
committed
Haiku: speed_t is defined as u8 for 32 and 64 bit systems
1 parent 89b4976 commit e63dd8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sys/termios.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ libc_enum! {
355355
/// enum.
356356
///
357357
/// B0 is special and will disable the port.
358-
#[cfg_attr(all(any(target_os = "haiku"), target_pointer_width = "64"), repr(u8))]
358+
#[cfg_attr(target_os = "haiku", repr(u8))]
359359
#[cfg_attr(all(any(target_os = "ios", target_os = "macos"), target_pointer_width = "64"), repr(u64))]
360-
#[cfg_attr(not(all(any(target_os = "ios", target_os = "macos", target_os = "haiku"), target_pointer_width = "64")), repr(u32))]
360+
#[cfg_attr(all(not(all(any(target_os = "ios", target_os = "macos"), target_pointer_width = "64")), not(target_os = "haiku")), repr(u32))]
361361
#[non_exhaustive]
362362
pub enum BaudRate {
363363
B0,

0 commit comments

Comments
 (0)