Patch from Kirk Beitz to make things compile on MinGW minus the putenv part.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@125199 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Utility/PseudoTerminal.cpp b/source/Utility/PseudoTerminal.cpp
index 382bf41..e4b444c 100644
--- a/source/Utility/PseudoTerminal.cpp
+++ b/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 @@
                 // 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)
                 {