mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
sched_yield netbsd (anselm garbe)
This commit is contained in:
parent
ed12a647df
commit
86c2ab2caf
1 changed files with 2 additions and 1 deletions
|
@ -900,7 +900,8 @@ extern int post9pservice(int, char*);
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__OpenBSD__)
|
/* this really shouldn't be here */
|
||||||
|
#if defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(sched_yield))
|
||||||
#define sched_yield() \
|
#define sched_yield() \
|
||||||
do { \
|
do { \
|
||||||
struct timespec ts; \
|
struct timespec ts; \
|
||||||
|
|
Loading…
Reference in a new issue