freebsd: fix wrong call to clock_getres (#1871)

Reported-by: daurnimator
This commit is contained in:
Marcio 2019-01-05 18:34:47 +00:00 committed by Andrew Kelley
parent 1f08be4d7f
commit 5f26d1dddb

View File

@ -723,7 +723,7 @@ pub fn clock_gettime(clk_id: i32, tp: *timespec) usize {
}
pub fn clock_getres(clk_id: i32, tp: *timespec) usize {
return clock_gettime(clk_id, tp);
return errnoWrap(c.clock_getres(clk_id, tp));
}
pub fn setuid(uid: u32) usize {