summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorDeepak Panickal <deepak@codeplay.com>2014-01-31 18:48:46 +0000
committerDeepak Panickal <deepak@codeplay.com>2014-01-31 18:48:46 +0000
commit914b8d989b0ea9f0da066773c7ca703eaa013f6b (patch)
tree670cb2885c1a859d2f53f3539c52590675c25267 /lldb/source/Target/Process.cpp
parent322ce39e39186aaea01c7b8ebfa14ff537721ea9 (diff)
downloadbcm5719-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.cpp8
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();
}
OpenPOWER on IntegriCloud