From: Clifford Wolf Date: Sat, 3 May 2014 10:55:56 +0000 (+0200) Subject: workaround for OpenBSD 'stdout' implementation X-Git-Tag: yosys-0.3.0~22 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5a519a9d15f188b93723c84890d6005d2e9c4be;p=yosys.git workaround for OpenBSD 'stdout' implementation --- diff --git a/kernel/register.cc b/kernel/register.cc index cb8ad473c..5d882ab43 100644 --- a/kernel/register.cc +++ b/kernel/register.cc @@ -400,7 +400,8 @@ void Backend::backend_call(RTLIL::Design *design, FILE *f, std::string filename, if (f != NULL) { backend_register[args[0]]->execute(f, filename, args, design); } else if (filename == "-") { - backend_register[args[0]]->execute(stdout, "", args, design); + FILE *f_stdout = stdout; // workaround for OpenBSD 'stdout' implementation + backend_register[args[0]]->execute(f_stdout, "", args, design); } else { if (!filename.empty()) args.push_back(filename);