hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit f01c8eed4e43d46da525e2a87fc529f94cecc809
parent 18f1e322ad5c70769d50f05c1183b06869c35c75
Author: Lorenz (xha) <me@xha.li>
Date:   Thu, 28 Dec 2023 07:41:53 +0100

OpenBSD: rt fix munmap system call

Signed-off-by: Lorenz (xha) <me@xha.li>

Diffstat:
Mrt/+openbsd/syscalls.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rt/+openbsd/syscalls.ha b/rt/+openbsd/syscalls.ha @@ -483,7 +483,7 @@ export fn chroot(path: path) (void | errno) = { @symbol("munmap") fn libc_munmap(addr: *opaque, len_: size) int; export fn munmap(addr: *opaque, len_: size) (void | errno) = { - let res = munmap(addr, len_); + let res = libc_munmap(addr, len_); if (res == -1) { return *__errno(): errno; };