[Lldb-commits] [lldb] r228714 - Fix build on Windows which was broken by a recent commit.
Hafiz Abid Qadeer
hafiz_abid at mentor.com
Tue Feb 10 10:12:44 PST 2015
Author: abidh
Date: Tue Feb 10 12:12:44 2015
New Revision: 228714
URL: http://llvm.org/viewvc/llvm-project?rev=228714&view=rev
Log:
Fix build on Windows which was broken by a recent commit.
This file MICmnStreamStdinLinux.cpp is wrongly added in the windows build.
It has no use there. CMakeList.txt for lldb-mi needs to be re-factored to
include the right file for each build. This is quick fix to un-break the build.
Modified:
lldb/trunk/tools/lldb-mi/MICmnStreamStdinLinux.cpp
Modified: lldb/trunk/tools/lldb-mi/MICmnStreamStdinLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnStreamStdinLinux.cpp?rev=228714&r1=228713&r2=228714&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmnStreamStdinLinux.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmnStreamStdinLinux.cpp Tue Feb 10 12:12:44 2015
@@ -20,8 +20,10 @@
//--
// Third Party Headers:
+#ifndef _WIN32
#include <sys/select.h>
#include <unistd.h> // For STDIN_FILENO
+#endif
#include <string.h> // For std::strerror()
// In-house headers:
@@ -152,6 +154,7 @@ CMICmnStreamStdinLinux::Shutdown(void)
bool
CMICmnStreamStdinLinux::InputAvailable(bool &vwbAvail)
{
+#ifndef _WIN32
// Wait for the input using select API. Timeout is used so that we get an
// opportunity to check if m_waitForInput has been set to false by other thread.
fd_set setOfStdin;
@@ -177,6 +180,7 @@ CMICmnStreamStdinLinux::InputAvailable(b
return MIstatus::success;
}
}
+#endif
return MIstatus::failure;
}
More information about the lldb-commits
mailing list