workaround for OpenBSD 'stdout' implementation

This commit is contained in:
Clifford Wolf 2014-05-03 12:55:56 +02:00
parent 75a5d6bd1e
commit a5a519a9d1
1 changed files with 2 additions and 1 deletions

View File

@ -400,7 +400,8 @@ void Backend::backend_call(RTLIL::Design *design, FILE *f, std::string filename,
if (f != NULL) { if (f != NULL) {
backend_register[args[0]]->execute(f, filename, args, design); backend_register[args[0]]->execute(f, filename, args, design);
} else if (filename == "-") { } else if (filename == "-") {
backend_register[args[0]]->execute(stdout, "<stdout>", args, design); FILE *f_stdout = stdout; // workaround for OpenBSD 'stdout' implementation
backend_register[args[0]]->execute(f_stdout, "<stdout>", args, design);
} else { } else {
if (!filename.empty()) if (!filename.empty())
args.push_back(filename); args.push_back(filename);