From 4f3dd76c6f5472b7c0040dd3bfb8e0efbe58557c Mon Sep 17 00:00:00 2001 From: Richard Diamond Date: Sat, 11 Apr 2015 19:12:58 -0500 Subject: [PATCH] Fixes issue #15. --- src/rustllvm/RustWrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index 8a6ed9890c904..d986bc4778e9d 100644 --- a/src/rustllvm/RustWrapper.cpp +++ b/src/rustllvm/RustWrapper.cpp @@ -980,7 +980,7 @@ static void ignore_debug_metadata_diagnostic_handler(const DiagnosticInfo& di, v switch(di.getSeverity()) { case DS_Error: if(!isa(di)) { - raw_fd_ostream stdout_(STDOUT_FILENO, false); + raw_fd_ostream stdout_(fileno(stdout), false); DiagnosticPrinterRawOStream diag(stdout_); di.print(diag); }