diff options
author | Deepak Panickal <deepak@codeplay.com> | 2014-02-17 17:43:39 +0000 |
---|---|---|
committer | Deepak Panickal <deepak@codeplay.com> | 2014-02-17 17:43:39 +0000 |
commit | 94667bcf70a628c431d2a97fe97e2a1872509c13 (patch) | |
tree | 4d652c63fbfd62b44312613063fe9e442255d5ac /lldb/source/Host/common | |
parent | 0db9d32ff75aaf4725d095feb43a052b3c202d19 (diff) | |
download | bcm5719-llvm-94667bcf70a628c431d2a97fe97e2a1872509c13.tar.gz bcm5719-llvm-94667bcf70a628c431d2a97fe97e2a1872509c13.zip |
Fix Windows build, broken by the inclusion of sys/ioctl.h and isatty()
llvm-svn: 201522
Diffstat (limited to 'lldb/source/Host/common')
-rw-r--r-- | lldb/source/Host/common/File.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp index dcb272ab5df..bb0ee39fbc7 100644 --- a/lldb/source/Host/common/File.cpp +++ b/lldb/source/Host/common/File.cpp @@ -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 } } |