diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-02-09 17:41:27 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-02-09 17:41:27 +0000 |
| commit | 000aeb89ae2f62de20c993cff5d4073703beb077 (patch) | |
| tree | ae30c62adfc55d759796fff565b891af43bdea29 /lldb/source/Utility | |
| parent | 9e4aa0259f65905b4c9ae74b966ae2806c99d07a (diff) | |
| download | bcm5719-llvm-000aeb89ae2f62de20c993cff5d4073703beb077.tar.gz bcm5719-llvm-000aeb89ae2f62de20c993cff5d4073703beb077.zip | |
Patch from Kirk Beitz to make things compile on MinGW minus the putenv part.
llvm-svn: 125199
Diffstat (limited to 'lldb/source/Utility')
| -rw-r--r-- | lldb/source/Utility/PseudoTerminal.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Utility/PseudoTerminal.cpp b/lldb/source/Utility/PseudoTerminal.cpp index 382bf41a8db..e4b444c3687 100644 --- a/lldb/source/Utility/PseudoTerminal.cpp +++ b/lldb/source/Utility/PseudoTerminal.cpp @@ -13,7 +13,9 @@ #include <stdlib.h> #include <string.h> #include <stdio.h> +#if defined(TIOCSCTTY) #include <sys/ioctl.h> +#endif using namespace lldb_utility; @@ -237,7 +239,7 @@ PseudoTerminal::Fork (char *error_str, size_t error_len) // We are done with the master in the child process so lets close it CloseMasterFileDescriptor (); -#if defined (TIOCSCTTY) +#if defined(TIOCSCTTY) // Acquire the controlling terminal if (::ioctl (m_slave_fd, TIOCSCTTY, (char *)0) < 0) { |

