fix sleep for OpenBSD 4.0 (Tim Wiess)

This commit is contained in:
rsc 2006-11-02 17:31:30 +00:00
parent 6fc7da3c52
commit d3864abaee

View file

@ -5,7 +5,7 @@
#include <sched.h> #include <sched.h>
#include <libc.h> #include <libc.h>
#if defined(__NetBSD__) || (defined(__OpenBSD__) && OpenBSD <= 200511) #if defined(__NetBSD__) || (defined(__OpenBSD__) && OpenBSD <= 200611)
#if !defined(sched_yield) #if !defined(sched_yield)
# define sched_yield() \ # define sched_yield() \
do{ struct timespec ts; \ do{ struct timespec ts; \