Skip to content

Commit c3f0932

Browse files
authored
[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. 812dad5
1 parent 81cd283 commit c3f0932

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Host/posix/PipePosix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ enum PIPES { READ, WRITE }; // Constants 0 and 1 for READ and WRITE
3131

3232
// pipe2 is supported by a limited set of platforms
3333
// TODO: Add more platforms that support pipe2.
34-
#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ >= 10) || \
35-
defined(__NetBSD__) || defined(__OpenBSD__)
34+
#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || \
35+
defined(__OpenBSD__)
3636
#define PIPE2_SUPPORTED 1
3737
#else
3838
#define PIPE2_SUPPORTED 0

0 commit comments

Comments
 (0)