[Lldb-commits] [lldb] [lldb] pipe2(2) is also supported by OpenBSD (PR #74012)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 30 16:26:05 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Brad Smith (brad0)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/74012.diff
1 Files Affected:
- (modified) lldb/source/Host/posix/PipePosix.cpp (+1-1)
``````````diff
diff --git a/lldb/source/Host/posix/PipePosix.cpp b/lldb/source/Host/posix/PipePosix.cpp
index c02869cbf4d7306..6fc4646953b4257 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
``````````
</details>
https://github.com/llvm/llvm-project/pull/74012
More information about the lldb-commits
mailing list