projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7e9056
)
workaround for OpenBSD 'stdin' implementation
author
Clifford Wolf
<clifford@clifford.at>
Fri, 2 May 2014 11:22:26 +0000
(13:22 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Fri, 2 May 2014 11:22:26 +0000
(13:22 +0200)
kernel/register.cc
patch
|
blob
|
history
diff --git
a/kernel/register.cc
b/kernel/register.cc
index 511afaac0c4c4ece57b93b623f1bcec773a895ae..cb8ad473cbf26423056e0554a6ac0cbf70205f66 100644
(file)
--- a/
kernel/register.cc
+++ b/
kernel/register.cc
@@
-306,7
+306,8
@@
void Frontend::frontend_call(RTLIL::Design *design, FILE *f, std::string filenam
if (f != NULL) {
frontend_register[args[0]]->execute(f, filename, args, design);
} else if (filename == "-") {
- frontend_register[args[0]]->execute(stdin, "<stdin>", args, design);
+ FILE *f_stdin = stdin; // workaround for OpenBSD 'stdin' implementation
+ frontend_register[args[0]]->execute(f_stdin, "<stdin>", args, design);
} else {
if (!filename.empty())
args.push_back(filename);