aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-11-16 00:25:15 +0000
committerrsc <devnull@localhost>2005-11-16 00:25:15 +0000
commit86c2ab2caf5eb4742e7cd227e6d29fc1dc74d855 (patch)
tree811d1ac830b68c4cfba26a5ca484cf4e33d24242 /include
parented12a647df79c647f32067d247f698cc1b59fc96 (diff)
downloadplan9port-86c2ab2caf5eb4742e7cd227e6d29fc1dc74d855.tar.gz
plan9port-86c2ab2caf5eb4742e7cd227e6d29fc1dc74d855.tar.bz2
plan9port-86c2ab2caf5eb4742e7cd227e6d29fc1dc74d855.zip
sched_yield netbsd (anselm garbe)
Diffstat (limited to 'include')
-rw-r--r--include/libc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libc.h b/include/libc.h
index 3c5537e4..65c23dd5 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -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; \