u-fix-rustix-for-sparc64
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 10 Sep 2023 17:22:53 +0000 (18:22 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Sun, 10 Sep 2023 17:22:53 +0000 (18:22 +0100)
Gbp-Pq: Name u-fix-rustix-for-sparc64.patch

vendor/rustix/src/termios/constants.rs
vendor/rustix/src/termios/mod.rs

index e96f139eb8e0d4299022db83bb57ca28bf3b795b..21c29ac6331974572a62da93d4a5e190f7bb16f1 100644 (file)
@@ -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<u32> {
         )))]
         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<u32> {
         )))]
         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<u32> {
         )))]
         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",
index 5c4cccca9d654a2150cd99dfc2afba67a9d29bdf..894166bbd87e44c9d350e2ccb37fcadfbc4900d0 100644 (file)
@@ -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",