[Lldb-commits] [PATCH] D12746: The pipe2(2) call is supported on NetBSD
Kamil Rytarowski via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 10 16:54:45 PDT 2015
krytarowski updated this revision to Diff 34512.
krytarowski added a comment.
rediff the comment
Repository:
rL LLVM
http://reviews.llvm.org/D12746
Files:
source/Host/posix/PipePosix.cpp
Index: source/Host/posix/PipePosix.cpp
===================================================================
--- source/Host/posix/PipePosix.cpp
+++ source/Host/posix/PipePosix.cpp
@@ -36,9 +36,9 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12746.34512.patch
Type: text/x-patch
Size: 655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150910/f47e4297/attachment-0001.bin>
More information about the lldb-commits
mailing list