Fix compilation errors introduced by host Pipe abstraction

on Windows.

llvm-svn: 212255
This commit is contained in:
Zachary Turner 2014-07-03 05:20:28 +00:00
parent 739b6ada99
commit 78b84f5454
1 changed files with 5 additions and 6 deletions

View File

@ -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;