Fix internal_sleep() for NetBSD

This is a follow up of a similar fix for Linux from D55692.

llvm-svn: 349257
This commit is contained in:
Kamil Rytarowski 2018-12-15 08:25:25 +00:00
parent 4790194b19
commit 5748bb4133
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ void internal__exit(int exitcode) {
unsigned int internal_sleep(unsigned int seconds) {
struct timespec ts;
ts.tv_sec = 1;
ts.tv_sec = seconds;
ts.tv_nsec = 0;
CHECK(&_sys___nanosleep50);
int res = _sys___nanosleep50(&ts, &ts);