summaryrefslogtreecommitdiff
path: root/sys/src/cmd/2c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-04-11 05:03:49 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2020-04-11 05:03:49 +0200
commit1b8a56941708e6fe884f4649f718fae7c543c045 (patch)
tree3d7be0a7e43b01aba6dd986bff06bcc3947a6d78 /sys/src/cmd/2c
parent9d46360c9d83fa95f42f1eebbad49ecd9281fb0d (diff)
cc, ?[acl]: fix gethunk() and move common memory allocator code to cc/compat
for gethunk() to work, all allocators have to use it, including allocations done by libc thru malloc(), so the fake allocation functions are mandatory for everyone. to avoid duplication the code is moved to cc/compat and prototypes provided in new cc/compat.h header.
Diffstat (limited to 'sys/src/cmd/2c')
-rw-r--r--sys/src/cmd/2c/mkfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/2c/mkfile b/sys/src/cmd/2c/mkfile
index 662466050..7009bbf37 100644
--- a/sys/src/cmd/2c/mkfile
+++ b/sys/src/cmd/2c/mkfile
@@ -15,6 +15,7 @@ OFILES=\
HFILES=\
gc.h\
2.out.h\
+ ../cc/compat.h\
../cc/cc.h\
LIB=../cc/cc.a$O