forked from OSchip/llvm-project
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:
parent
4790194b19
commit
5748bb4133
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue