initial darwin
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
index bbf8473..0334fe3 100644
--- a/src/libthread/threadimpl.h
+++ b/src/libthread/threadimpl.h
@@ -16,6 +16,10 @@
 extern	void		makecontext(ucontext_t*, void(*)(), int, ...);
 #endif
 
+#if defined(__APPLE__)
+#	include "Darwin-ucontext.h"
+#endif
+
 typedef struct Context Context;
 typedef struct Execjob Execjob;
 typedef struct Proc Proc;