mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +01:00
wgpu-hal: vulkan: Fix compilation for time64 systems (#9736)
This commit is contained in:
1 parent
977e85dca6
commit
2a05cf760b
2 files changed
+2
-5
No files matched your search
+1
-1
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user