summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Host/common/Pipe.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/lldb/source/Host/common/Pipe.cpp b/lldb/source/Host/common/Pipe.cpp
index d72b91693c1..4db0e32c93b 100644
--- a/lldb/source/Host/common/Pipe.cpp
+++ b/lldb/source/Host/common/Pipe.cpp
@@ -9,12 +9,11 @@
#include "lldb/Host/Pipe.h"
-#include <unistd.h>
-
-#ifdef _WIN32
+#if defined(_WIN32)
#include <io.h>
-#include <math.h> // TODO: not sure if this is needed for windows, remove if not
-#include <process.h>// TODO: not sure if this is needed for windows, remove if not
+#include <fcntl.h>
+#else
+#include <unistd.h>
#endif
using namespace lldb_private;
@@ -42,7 +41,7 @@ Pipe::Open()
#ifdef _WIN32
if (::_pipe(m_fds, 256, O_BINARY) == 0)
- return true
+ return true;
#else
if (::pipe(m_fds) == 0)
return true;
OpenPOWER on IntegriCloud