Fix build on Windows which was broken by a recent commit.
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>
Tue, 10 Feb 2015 18:12:44 +0000 (18:12 +0000)
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>
Tue, 10 Feb 2015 18:12:44 +0000 (18:12 +0000)
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.

llvm-svn: 228714

lldb/tools/lldb-mi/MICmnStreamStdinLinux.cpp

index 07b5473..1b0b5ec 100644 (file)
 //--
 
 // 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(bool &vwbAvail)
             return MIstatus::success;
         }
     }
+#endif
     return MIstatus::failure;
 }