From 2a05cf760bb2e079dab82eb3fa316615021c5d4d Mon Sep 17 00:00:00 2001 From: Aelin Date: Wed, 24 Jun 2026 18:36:54 +0200 Subject: [PATCH] wgpu-hal: vulkan: Fix compilation for time64 systems (#9736) --- Cargo.toml | 2 +- wgpu-hal/src/vulkan/adapter.rs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 490460f4f..344d39c13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/wgpu-hal/src/vulkan/adapter.rs b/wgpu-hal/src/vulkan/adapter.rs index e6c3f7735..92505dfca 100644 --- a/wgpu-hal/src/vulkan/adapter.rs +++ b/wgpu-hal/src/vulkan/adapter.rs @@ -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); }