Commit 5e733aca authored by Ondřej Surý's avatar Ondřej Surý
Browse files

fixup! WIP: Add usleep and nanosleep win32 shims

parent 177398b8
Pipeline #70316 failed with stages
in 61 minutes and 56 seconds
......@@ -601,12 +601,12 @@ nanosleep(const struct timespec *req, struct timespec *rem) {
rem->tv_nsec = 0;
}
if (requested_delay->tv_sec >= 0) {
if (req->tv_sec >= 0) {
/*
* For requested delays of one second or more, 15ms resolution
* granularity is sufficient.
*/
Sleep (requested_delay->tv_sec * 1000 + requested_delay->tv_nsec / 1000000);
Sleep (req->tv_sec * 1000 + req->tv_nsec / 1000000);
return (0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment