openbsd
diff --git a/include/libc.h b/include/libc.h
index 3880f3d..5c2e7bf 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -832,7 +832,7 @@
 #	endif
 #endif
 
-#if defined(__OpenBSD__) && !defined(NOPLAN9DEFINES)
+#if defined(__OpenBSD__)
 #define sched_yield() \
 	do { \
 		struct timespec ts; \
diff --git a/include/u.h b/include/u.h
index 0a696ce..c5f5dcd 100644
--- a/include/u.h
+++ b/include/u.h
@@ -95,11 +95,9 @@
 #	undef _NEEDULONG
 #elif defined(__OpenBSD__)
 #	include <sys/types.h>
-#	include <pthread.h>
 #	undef _NEEDUSHORT
 #	undef _NEEDUINT
 #	undef _NEEDULONG
-#	define PLAN9PORT_USING_PTHREADS 1
 #else
 	/* No idea what system this is -- try some defaults */
 #	include <pthread.h>
diff --git a/src/lib9/sleep.c b/src/lib9/sleep.c
index 9cafdcf..5da602e 100644
--- a/src/lib9/sleep.c
+++ b/src/lib9/sleep.c
@@ -1,8 +1,8 @@
 #include <u.h>
 #define NOPLAN9DEFINES
-#include <libc.h>
 #include <sys/time.h>
 #include <sched.h>
+#include <libc.h>
 
 int
 p9sleep(long milli)