diff options
author | Ed Maste <emaste@freebsd.org> | 2015-09-14 15:12:49 +0000 |
---|---|---|
committer | Ed Maste <emaste@freebsd.org> | 2015-09-14 15:12:49 +0000 |
commit | 37366e569811ac84939495cbb00140e75c15a769 (patch) | |
tree | 2bef2355c868e86ea9471f1065e85eadf784c899 | |
parent | e68a15e7bc6018131043440becb1417b89f28365 (diff) | |
download | bcm5719-llvm-37366e569811ac84939495cbb00140e75c15a769.tar.gz bcm5719-llvm-37366e569811ac84939495cbb00140e75c15a769.zip |
The pipe2(2) call is supported on NetBSD
Patch by Kamil Rytarowski.
Differential Revision: http://reviews.llvm.org/D12746
llvm-svn: 247568
-rw-r--r-- | lldb/source/Host/posix/PipePosix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/posix/PipePosix.cpp b/lldb/source/Host/posix/PipePosix.cpp index 004c85e10b0..353faae1628 100644 --- a/lldb/source/Host/posix/PipePosix.cpp +++ b/lldb/source/Host/posix/PipePosix.cpp @@ -36,9 +36,9 @@ int PipePosix::kInvalidDescriptor = -1; enum PIPES { READ, WRITE }; // Constants 0 and 1 for READ and WRITE -// pipe2 is supported by Linux, FreeBSD v10 and higher. +// pipe2 is supported by a limited set of platforms // TODO: Add more platforms that support pipe2. -#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ >= 10) +#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD__ >= 10) || defined(__NetBSD__) #define PIPE2_SUPPORTED 1 #else #define PIPE2_SUPPORTED 0 |