[Lldb-commits] [lldb] r201522 - Fix Windows build, broken by the inclusion of sys/ioctl.h and isatty()

Deepak Panickal deepak at codeplay.com
Mon Feb 17 09:43:40 PST 2014


Author: panickal
Date: Mon Feb 17 11:43:39 2014
New Revision: 201522

URL: http://llvm.org/viewvc/llvm-project?rev=201522&view=rev
Log:
Fix Windows build, broken by the inclusion of sys/ioctl.h and isatty()

Modified:
    lldb/trunk/source/Host/common/File.cpp

Modified: lldb/trunk/source/Host/common/File.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/File.cpp?rev=201522&r1=201521&r2=201522&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/File.cpp (original)
+++ lldb/trunk/source/Host/common/File.cpp Mon Feb 17 11:43:39 2014
@@ -15,10 +15,11 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <sys/stat.h>
-#include <sys/ioctl.h>
 
 #ifdef _WIN32
 #include "lldb/Host/windows/windows.h"
+#else
+#include <sys/ioctl.h>
 #endif
 
 #include "lldb/Core/DataBufferHeap.h"
@@ -886,6 +887,7 @@ File::CalculateInteractiveAndTerminal ()
     {
         m_is_interactive = eLazyBoolNo;
         m_is_real_terminal = eLazyBoolNo;
+#ifndef _MSC_VER
         if (isatty(fd))
         {
             m_is_interactive = eLazyBoolYes;
@@ -896,6 +898,7 @@ File::CalculateInteractiveAndTerminal ()
                     m_is_real_terminal = eLazyBoolYes;
             }
         }
+#endif
     }
 }
 





More information about the lldb-commits mailing list