[Lldb-commits] [lldb] [lldb] pipe2(2) is also supported by OpenBSD (PR #74012)

Brad Smith via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 30 16:25:36 PST 2023


https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/74012

None

>From e3d6d0b6040516ee761c1b635093fd13244e9d2a Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Thu, 30 Nov 2023 19:17:53 -0500
Subject: [PATCH] [lldb] pipe2(2) is also supported by OpenBSD

---
 lldb/source/Host/posix/PipePosix.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/source/Host/posix/PipePosix.cpp b/lldb/source/Host/posix/PipePosix.cpp
index c02869cbf4d73066..6fc4646953b4257d 100644
--- a/lldb/source/Host/posix/PipePosix.cpp
+++ b/lldb/source/Host/posix/PipePosix.cpp
@@ -32,7 +32,7 @@ enum PIPES { READ, WRITE }; // Constants 0 and 1 for READ and WRITE
 // 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



More information about the lldb-commits mailing list