Index: lldb/source/Host/posix/PipePosix.cpp
--- lldb/source/Host/posix/PipePosix.cpp.orig
+++ lldb/source/Host/posix/PipePosix.cpp
@@ -32,7 +32,7 @@ enum PIPES { READ, WRITE }; // Constants 0 and 1 for R
 // pipe2 is supported by a limited set of platforms
 // TODO: Add more platforms that support pipe2.
 #if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ >= 10) ||       \
-    defined(__NetBSD__)
+    defined(__NetBSD__) || defined(__OpenBSD__)
 #define PIPE2_SUPPORTED 1
 #else
 #define PIPE2_SUPPORTED 0
