diff options
author | Niels Sascha Reedijk <niels.reedijk@gmail.com> | 2023-06-17 15:04:46 +0000 |
---|---|---|
committer | Niels Sascha Reedijk <niels.reedijk@gmail.com> | 2023-06-17 15:04:46 +0000 |
commit | e63dd8fa5944e945557c1605b633345d07aeea27 (patch) | |
tree | 800d404347786d04abe3e5c8b9cb040d0bb1876f /src/sys/termios.rs | |
parent | 89b4976fddf713ca54834612e351ae35d86c430a (diff) | |
download | nix-e63dd8fa5944e945557c1605b633345d07aeea27.zip |
Haiku: `speed_t` is defined as `u8` for 32 and 64 bit systems
Diffstat (limited to 'src/sys/termios.rs')
-rw-r--r-- | src/sys/termios.rs | 4 |
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, |