this was meant to be included in the previous commits

This commit is contained in:
dzaima 2024-02-13 22:24:35 +02:00
parent b7afe7e597
commit 5c98930126

View File

@ -10,7 +10,7 @@ static u64 prepAllocSize(u64 sz) {
if (psz < minTotPad) psz = minTotPad;
return sz + psz;
}
#define MMAP(SZ) mmap(NULL, prepAllocSize(SZ), PROT_READ|PROT_WRITE, MAP_NORESERVE|MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
#define MMAP(SZ) mmap(NULL, SZ, PROT_READ|PROT_WRITE, MAP_NORESERVE|MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
GLOBAL bool mem_log_enabled;