Index: rts/System/Platform/Threading.h
--- rts/System/Platform/Threading.h.orig
+++ rts/System/Platform/Threading.h
@@ -58,6 +58,9 @@ namespace Threading {
 #ifndef _WIN32
 	extern thread_local std::shared_ptr<ThreadControls> localThreadControls;
 #endif
+#ifdef __OpenBSD__
+#include <pthread_np.h>
+#endif
 
 
 	/**
