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)), + } + } +