Commit Diff


commit - a237e87c33523521133e28bd304e915b00661025
commit + ceb21b8a90da680a6795fa49cc5744244f2d002a
blob - 88382c155fe0a3f6f4389ddcd302c6693986f4df
blob + ff7e7be5ce1d8b2f325a4e80a9f5a78ad6d7fcc5
--- include/libc.h
+++ include/libc.h
@@ -830,10 +830,6 @@ extern	int	post9pservice(int, char*);
 #		undef USED
 #		define USED(x) { ulong __y __attribute__ ((unused)); __y = (ulong)(x); }
 #	endif
-#endif
-
-#ifdef __OpenBSD__
-#define sched_yield()	syscall(302)	/* what is this? */
 #endif
 
 /* command line */
blob - 1489ebd89a9d37f4023d844604b113a9a8e201e0
blob + 68a08a671ca4eaa6e38e3dd4eefc198f24e7b1a9
--- include/u.h
+++ 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