tsched_yield netbsd (anselm garbe) - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 86c2ab2caf5eb4742e7cd227e6d29fc1dc74d855
parent ed12a647df79c647f32067d247f698cc1b59fc96
Author: rsc 
Date:   Wed, 16 Nov 2005 00:25:15 +0000

sched_yield netbsd (anselm garbe)

Diffstat:
  M include/libc.h                      |       3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/include/libc.h b/include/libc.h
t@@ -900,7 +900,8 @@ extern        int        post9pservice(int, char*);
 #        endif
 #endif
 
-#if defined(__OpenBSD__)
+/* this really shouldn't be here */
+#if defined(__OpenBSD__) || (defined(__NetBSD__) && !defined(sched_yield))
 #define sched_yield() \
         do { \
                 struct timespec ts; \