[Lldb-commits] [lldb] c3f0932 - [lldb] Simplify pipe2(2) handling on FreeBSD (#74019)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 1 13:05:48 PST 2023
Author: Brad Smith
Date: 2023-12-01T16:05:38-05:00
New Revision: c3f0932c189e4c11f82a3f8d73d2002e0aa6dab6
URL: https://github.com/llvm/llvm-project/commit/c3f0932c189e4c11f82a3f8d73d2002e0aa6dab6
DIFF: https://github.com/llvm/llvm-project/commit/c3f0932c189e4c11f82a3f8d73d2002e0aa6dab6.diff
LOG: [lldb] Simplify pipe2(2) handling on FreeBSD (#74019)
FreeBSD 10.x and 11.x support has been dropped leaving 12.x as the
minimum version. This FreeBSD check can be simplified.
https://github.com/llvm/llvm-project/commit/812dad536ed50abe94d6e2b2519f351791c24c59
Added:
Modified:
lldb/source/Host/posix/PipePosix.cpp
Removed:
################################################################################
diff --git a/lldb/source/Host/posix/PipePosix.cpp b/lldb/source/Host/posix/PipePosix.cpp
index 6fc4646953b4257..afd3fe39059ac17 100644
--- a/lldb/source/Host/posix/PipePosix.cpp
+++ b/lldb/source/Host/posix/PipePosix.cpp
@@ -31,8 +31,8 @@ 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(__OpenBSD__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || \
+ defined(__OpenBSD__)
#define PIPE2_SUPPORTED 1
#else
#define PIPE2_SUPPORTED 0
More information about the lldb-commits
mailing list