Index: lldb/test/API/api/multithreaded/common.h
--- lldb/test/API/api/multithreaded/common.h.orig
+++ lldb/test/API/api/multithreaded/common.h
@@ -58,7 +58,7 @@ class multithreaded_queue { (public)
 
 /// Allocates a char buffer with the current working directory
 inline char* get_working_dir() {
-#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
     return getwd(0);
 #else
     return get_current_dir_name();
