wgpu-hal: vulkan: Fix compilation for time64 systems (#9736)

This commit is contained in:
Aelin authored and GitHub committed 2026-06-24 16:36:54 +00:00
1 parent 977e85dca6
commit 2a05cf760b
2 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -143,7 +143,7 @@ indicatif = "0.18"
itertools = { version = "0.14" }
jobserver = "0.1"
ktx2 = "0.5"
libc = { version = "0.2.172", default-features = false }
libc = { version = "0.2.183", default-features = false }
# See https://github.com/rust-fuzz/libfuzzer/issues/126
libfuzzer-sys = ">0.4.0,<=0.4.7"
libloading = "0.8"
+1 -4
View File
@@ -3094,10 +3094,7 @@ impl crate::Adapter for super::Adapter {
// on mac, so this is fine.
#[cfg(unix)]
{
let mut timespec = libc::timespec {
tv_sec: 0,
tv_nsec: 0,
};
let mut timespec = libc::timespec::default();
unsafe {
libc::clock_gettime(libc::CLOCK_MONOTONIC, &mut timespec);
}