diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 182e14db096..d0dade1f8ca 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -17,8 +17,8 @@ //===----------------------------------------------------------------------===// #include -#include #include "Unix.h" +#include #if HAVE_SYS_STAT_H #include #endif @@ -210,8 +210,8 @@ Program::ExecuteAndWait(const Path& path, } // Make sure stderr and stdout have been flushed - cerr.flush(); - cout.flush(); + std::cerr << std::flush; + std::cout << std::flush; fsync(1); fsync(2);