diff options
author | Deepak Panickal <deepak@codeplay.com> | 2014-01-31 18:48:46 +0000 |
---|---|---|
committer | Deepak Panickal <deepak@codeplay.com> | 2014-01-31 18:48:46 +0000 |
commit | 914b8d989b0ea9f0da066773c7ca703eaa013f6b (patch) | |
tree | 670cb2885c1a859d2f53f3539c52590675c25267 /lldb/source/Target/Process.cpp | |
parent | 322ce39e39186aaea01c7b8ebfa14ff537721ea9 (diff) | |
download | bcm5719-llvm-914b8d989b0ea9f0da066773c7ca703eaa013f6b.tar.gz bcm5719-llvm-914b8d989b0ea9f0da066773c7ca703eaa013f6b.zip |
Fixing the Windows build for the changes brought in from the iohandler merge.
llvm-svn: 200565
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 799f35a3dea..a18eab0f265 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -4751,7 +4751,12 @@ public: return true; int fds[2]; +#ifdef _MSC_VER + // pipe is not supported on windows so default to a fail condition + int err = 1; +#else int err = pipe(fds); +#endif if (err == 0) { m_pipe_read.SetDescriptor(fds[0], true); @@ -4786,6 +4791,8 @@ public: Terminal terminal(read_fd); terminal.SetCanonical(false); terminal.SetEcho(false); +// FD_ZERO, FD_SET are not supported on windows +#ifndef _MSC_VER while (!GetIsDone()) { fd_set read_fdset; @@ -4825,6 +4832,7 @@ public: } } } +#endif terminal_state.Restore(); } |