From 66a094a9eb14d43cb21fdea76479d2e8f8c94648 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 11 Sep 2007 12:23:59 -0400 Subject: [PATCH] ENH: opps --- Source/cmSystemTools.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 7e597241c..ba063e703 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1978,6 +1978,7 @@ int cmSystemTools::WaitForLine(cmsysProcess* process, std::string& line, void cmSystemTools::DoNotInheritStdPipes() { +#ifdef _WIN32 { HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE); DuplicateHandle(GetCurrentProcess(), out, @@ -1992,4 +1993,5 @@ void cmSystemTools::DoNotInheritStdPipes() DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE); SetStdHandle(STD_ERROR_HANDLE, out); } +#endif }