sergio/takana
> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…
firefox 154.0 — la cabeza de la familia Gecko (receta, sin construir todavía)
1From 028fe668ae12ba3c8fec833778c31f6d5b6d318b Mon Sep 17 00:00:00 2001
2From: Aelin <aelin@postmarketos.org>
3Date: Wed, 24 Jun 2026 17:36:25 +0200
4Subject: [PATCH] time64 compile fixes
5
6---
7 third_party/rust/alsa/src/pcm.rs | 6 +++---
8 third_party/rust/wgpu-hal/src/vulkan/adapter.rs | 5 +----
9 third_party/rust/zeitstempel/src/unix.rs | 10 ++--------
10 3 files changed, 6 insertions(+), 15 deletions(-)
11
12diff --git a/third_party/rust/alsa/src/pcm.rs b/third_party/rust/alsa/src/pcm.rs
13index 16569b7..ca3517b 100644
14--- a/third_party/rust/alsa/src/pcm.rs
15+++ b/third_party/rust/alsa/src/pcm.rs
16@@ -1110,19 +1110,19 @@ impl Status {
17 fn ptr(&self) -> *mut alsa::snd_pcm_status_t { self.0.as_ptr() as *const _ as *mut alsa::snd_pcm_status_t }
18
19 pub fn get_htstamp(&self) -> timespec {
20- let mut h = timespec {tv_sec: 0, tv_nsec: 0};
21+ let mut h = timespec::default();
22 unsafe { alsa::snd_pcm_status_get_htstamp(self.ptr(), &mut h) };
23 h
24 }
25
26 pub fn get_trigger_htstamp(&self) -> timespec {
27- let mut h = timespec {tv_sec: 0, tv_nsec: 0};
28+ let mut h = timespec::default();
29 unsafe { alsa::snd_pcm_status_get_trigger_htstamp(self.ptr(), &mut h) };
30 h
31 }
32
33 pub fn get_audio_htstamp(&self) -> timespec {
34- let mut h = timespec {tv_sec: 0, tv_nsec: 0};
35+ let mut h = timespec::default();
36 unsafe { alsa::snd_pcm_status_get_audio_htstamp(self.ptr(), &mut h) };
37 h
38 }
39diff --git a/third_party/rust/zeitstempel/src/unix.rs b/third_party/rust/zeitstempel/src/unix.rs
40index d2db5c6..874047b 100644
41--- a/third_party/rust/zeitstempel/src/unix.rs
42+++ b/third_party/rust/zeitstempel/src/unix.rs
43@@ -12,10 +12,7 @@ fn timespec_to_ns(ts: libc::timespec) -> u64 {
44 ///
45 /// [`clock_gettime`]: https://manpages.debian.org/buster/manpages-dev/clock_gettime.3.en.html
46 pub fn now_including_suspend() -> u64 {
47- let mut ts = libc::timespec {
48- tv_sec: 0,
49- tv_nsec: 0,
50- };
51+ let mut ts = libc::timespec::default();
52 unsafe {
53 libc::clock_gettime(libc::CLOCK_BOOTTIME, &mut ts);
54 }
55@@ -32,10 +29,7 @@ pub fn now_including_suspend() -> u64 {
56 /// [`clock_gettime`]: https://manpages.debian.org/buster/manpages-dev/clock_gettime.3.en.html
57 /// [`FreeBSD clock_gettime`]: https://man.freebsd.org/cgi/man.cgi?query=clock_gettime&manpath=FreeBSD+15.0-RELEASE
58 pub fn now_awake() -> u64 {
59- let mut ts = libc::timespec {
60- tv_sec: 0,
61- tv_nsec: 0,
62- };
63+ let mut ts = libc::timespec::default();
64 #[cfg(any(target_os = "linux", target_os = "android"))]
65 let clock = libc::CLOCK_MONOTONIC;
66 #[cfg(any(target_os = "freebsd", target_os = "openbsd"))]