time: fix C.clock_gettime return type (fix #8843) (#22551)

This commit is contained in:
Felipe Pena 2024-10-17 14:57:59 -03:00 committed by GitHub
parent c8423dd300
commit 5e253e7923
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ pub mut:
}
// the first arg is defined in include/bits/types.h as `__S32_TYPE`, which is `int`
fn C.clock_gettime(int, &C.timespec)
fn C.clock_gettime(int, &C.timespec) int
fn C.nanosleep(req &C.timespec, rem &C.timespec) int

View File

@ -7,5 +7,5 @@ pub mut:
}
fn C.gettid() u32
fn C.clock_gettime(int, &C.timespec)
fn C.clock_gettime(int, &C.timespec) int
fn C.pthread_self() u64