From ad4c16e64f118b6f7c734278e31e3c4c50b64a02 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 10 Aug 2021 19:00:57 +0200 Subject: [PATCH] ugdb: fix build on platforms without 64-bit atomics --- srcpkgs/ugdb/patches/atomicu64.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/ugdb/patches/atomicu64.patch diff --git a/srcpkgs/ugdb/patches/atomicu64.patch b/srcpkgs/ugdb/patches/atomicu64.patch new file mode 100644 index 00000000000..ec56043af57 --- /dev/null +++ b/srcpkgs/ugdb/patches/atomicu64.patch @@ -0,0 +1,28 @@ +commit db6e990cc46d69526beae930e0048f65d5510c34 +Author: q66 +Date: Tue Aug 10 18:52:51 2021 +0200 + + fix build on platforms without 64-bit atomics + +diff --git a/src/main.rs b/src/main.rs +index ccfccab..fe2b52c 100644 +--- a/src/main.rs ++++ b/src/main.rs +@@ -284,7 +284,7 @@ struct MpscTimer { + next_sender: Option>, + sender: Sender, + evt_fn: Box Event>, +- counter: std::sync::Arc, ++ counter: std::sync::Arc, + } + + impl MpscTimer { +@@ -293,7 +293,7 @@ impl MpscTimer { + next_sender: Some(sender.clone()), + sender, + evt_fn, +- counter: std::sync::Arc::new(std::sync::atomic::AtomicU64::new(0)), ++ counter: std::sync::Arc::new(std::sync::atomic::AtomicUsize::new(0)), + } + } +