From 630979bad25a5292517ea1d6a6ece2d1c78a40ce Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Sun, 10 Sep 2023 18:22: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 5c4cccca9d..894166bbd8 100644 --- a/vendor/rustix/src/termios/mod.rs +++ b/vendor/rustix/src/termios/mod.rs @@ -48,6 +48,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", @@ -116,6 +118,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", @@ -125,6 +129,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", @@ -138,6 +144,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