mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-28 08:01:33 +00:00
probably actually fix linux for real though
This commit is contained in:
@ -18,9 +18,12 @@ pub fn platform_clock_res_get(
|
||||
_ => return __WASI_EINVAL,
|
||||
};
|
||||
|
||||
let output = unsafe {
|
||||
let (output, timespec_out) = unsafe {
|
||||
let mut timespec_out: timespec = mem::uninitialized();
|
||||
clock_getres(linux_clock_id, &mut timespec_out);
|
||||
(
|
||||
clock_getres(linux_clock_id, &mut timespec_out),
|
||||
timespec_out,
|
||||
)
|
||||
};
|
||||
|
||||
resolution.set(timespec_out.tv_nsec as __wasi_timestamp_t);
|
||||
|
Reference in New Issue
Block a user