[Lldb-commits] [lldb] r247568 - The pipe2(2) call is supported on NetBSD

Ed Maste via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 14 08:12:49 PDT 2015


Author: emaste
Date: Mon Sep 14 10:12:49 2015
New Revision: 247568

URL: http://llvm.org/viewvc/llvm-project?rev=247568&view=rev
Log:
The pipe2(2) call is supported on NetBSD

Patch by Kamil Rytarowski.

Differential Revision:	http://reviews.llvm.org/D12746

Modified:
    lldb/trunk/source/Host/posix/PipePosix.cpp

Modified: lldb/trunk/source/Host/posix/PipePosix.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/PipePosix.cpp?rev=247568&r1=247567&r2=247568&view=diff
==============================================================================
--- lldb/trunk/source/Host/posix/PipePosix.cpp (original)
+++ lldb/trunk/source/Host/posix/PipePosix.cpp Mon Sep 14 10:12:49 2015
@@ -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




More information about the lldb-commits mailing list