diff options
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/sleep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib9/sleep.c b/src/lib9/sleep.c index 5a2dcd44..5c4feff8 100644 --- a/src/lib9/sleep.c +++ b/src/lib9/sleep.c @@ -7,11 +7,11 @@ #if defined(__NetBSD__) || (defined(__OpenBSD__) && OpenBSD <= 200511) # define sched_yield() \ -# do{ struct timespec ts; \ -# ts.tv_sec = 0; \ -# ts.tv_nsec = 0; \ -# nanosleep(&ts, 0); \ -# }while(0) + do{ struct timespec ts; \ + ts.tv_sec = 0; \ + ts.tv_nsec = 0; \ + nanosleep(&ts, 0); \ + }while(0) #endif int |