Fixed memory allocation on MacOS

This commit is contained in:
2024-08-12 15:31:23 +02:00
parent de223908d7
commit 81b0cd813c
3 changed files with 10 additions and 4 deletions

5
lib/mem/alloc_linux.q Normal file
View File

@ -0,0 +1,5 @@
import sys
alloc(length Int) -> Pointer {
return sys.mmap(0, length, 0x1|0x2, 0x02|0x20)
}