summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-05-08 18:14:07 +1200
committerOri Bernstein <ori@eigenstate.org>2016-05-08 18:14:07 +1200
commit0060152b535f0376265f0fe46bba45964fe1a8b0 (patch)
treeaf48b33b8a414712fcb34f9169ff9db6ff2e9023 /6
parent4868e3b769c7b0d4c77c715df641219010be835b (diff)
downloadmc-0060152b535f0376265f0fe46bba45964fe1a8b0.tar.gz
We now can build and install on openbsd.
Diffstat (limited to '6')
-rw-r--r--6/gengas.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/6/gengas.c b/6/gengas.c
index 04a774b..a591d3c 100644
--- a/6/gengas.c
+++ b/6/gengas.c
@@ -373,7 +373,8 @@ static void gentype(FILE *fd, Type *ty)
ty->isemitted = 1;
b = tydescblob(ty);
- b->iscomdat = 1;
+ if (b->isglobl)
+ b->iscomdat = 1;
writeblob(fd, b);
blobfree(b);
}