From 39ce806bc5ca3cfcaa9bfcc5890c4623cf3123a5 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Sun, 3 Sep 2023 18:58:53 +0100 Subject: [PATCH] u-fix-rustix-for-sparc64 Gbp-Pq: Name u-fix-rustix-for-sparc64.patch --- vendor/rustix/src/termios/constants.rs | 14 ++++++++++++++ vendor/rustix/src/termios/mod.rs | 8 ++++++++ 2 files changed, 22 insertions(+) diff --git a/vendor/rustix/src/termios/constants.rs b/vendor/rustix/src/termios/constants.rs index e96f139eb8..21c29ac633 100644 --- a/vendor/rustix/src/termios/constants.rs +++ b/vendor/rustix/src/termios/constants.rs @@ -33,6 +33,8 @@ pub use backend::termios::types::B1152000; )))] pub use backend::termios::types::B1500000; #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", target_os = "dragonfly", target_os = "freebsd", target_os = "haiku", @@ -96,6 +98,8 @@ pub use backend::termios::types::B3500000; )))] pub use backend::termios::types::B4000000; #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", target_os = "dragonfly", target_os = "haiku", target_os = "ios", @@ -104,6 +108,8 @@ pub use backend::termios::types::B4000000; )))] pub use backend::termios::types::B460800; #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", target_os = "dragonfly", target_os = "freebsd", target_os = "haiku", @@ -116,6 +122,8 @@ pub use backend::termios::types::B460800; )))] pub use backend::termios::types::B500000; #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", target_os = "dragonfly", target_os = "freebsd", target_os = "haiku", @@ -732,6 +740,8 @@ pub fn speed_value(speed: backend::termios::types::Speed) -> Option { )))] backend::termios::types::B500000 => Some(500_000), #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", target_os = "dragonfly", target_os = "freebsd", target_os = "haiku", @@ -744,6 +754,8 @@ pub fn speed_value(speed: backend::termios::types::Speed) -> Option { )))] backend::termios::types::B576000 => Some(576_000), #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", target_os = "dragonfly", target_os = "haiku", target_os = "ios", @@ -752,6 +764,8 @@ pub fn speed_value(speed: backend::termios::types::Speed) -> Option { )))] backend::termios::types::B921600 => Some(921_600), #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", target_os = "dragonfly", target_os = "freebsd", target_os = "haiku", diff --git a/vendor/rustix/src/termios/mod.rs b/vendor/rustix/src/termios/mod.rs index ec35f96fbc..582a18e578 100644 --- a/vendor/rustix/src/termios/mod.rs +++ b/vendor/rustix/src/termios/mod.rs @@ -41,6 +41,8 @@ pub use constants::B1152000; )))] pub use constants::B1500000; #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", target_os = "dragonfly", target_os = "freebsd", target_os = "haiku", @@ -104,6 +106,8 @@ pub use constants::B3500000; )))] pub use constants::B4000000; #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", target_os = "dragonfly", target_os = "haiku", target_os = "ios", @@ -112,6 +116,8 @@ pub use constants::B4000000; )))] pub use constants::B460800; #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", target_os = "dragonfly", target_os = "freebsd", target_os = "haiku", @@ -124,6 +130,8 @@ pub use constants::B460800; )))] pub use constants::B500000; #[cfg(not(any( + target_arch = "sparc", + target_arch = "sparc64", target_os = "dragonfly", target_os = "freebsd", target_os = "haiku", -- 2.30.2