aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-19 11:36:27 +0000
committerrsc <devnull@localhost>2005-07-19 11:36:27 +0000
commitceb21b8a90da680a6795fa49cc5744244f2d002a (patch)
tree45cbdd44c47a0a791500c398f0c9a004bfd3beef /include
parenta237e87c33523521133e28bd304e915b00661025 (diff)
downloadplan9port-ceb21b8a90da680a6795fa49cc5744244f2d002a.tar.gz
plan9port-ceb21b8a90da680a6795fa49cc5744244f2d002a.tar.bz2
plan9port-ceb21b8a90da680a6795fa49cc5744244f2d002a.zip
maybe openbsd has schedyield now
Diffstat (limited to 'include')
-rw-r--r--include/libc.h4
-rw-r--r--include/u.h1
2 files changed, 1 insertions, 4 deletions
diff --git a/include/libc.h b/include/libc.h
index 88382c15..ff7e7be5 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -832,10 +832,6 @@ extern int post9pservice(int, char*);
# endif
#endif
-#ifdef __OpenBSD__
-#define sched_yield() syscall(302) /* what is this? */
-#endif
-
/* command line */
extern char *argv0;
extern void __fixargv0(void);
diff --git a/include/u.h b/include/u.h
index 1489ebd8..68a08a67 100644
--- a/include/u.h
+++ b/include/u.h
@@ -92,6 +92,7 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
# undef _NEEDUINT
# undef _NEEDULONG
#elif defined(__OpenBSD__)
+# include <sys/types.h>
# undef _NEEDUSHORT
# undef _NEEDUINT
# undef _NEEDULONG