From 982c0e9cd4695ac4d94fff841b1a10d5e7abc7a4 Mon Sep 17 00:00:00 2001 From: ownedbywuigi Date: Tue, 8 Jul 2025 04:13:19 +0100 Subject: [PATCH] Modify it to use our mman.h --- core/memory/arena.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/memory/arena.cpp b/core/memory/arena.cpp index b3de55a..e8e4e0e 100644 --- a/core/memory/arena.cpp +++ b/core/memory/arena.cpp @@ -1,6 +1,6 @@ #include "arena.h" #include "Base/Assert.h" -#include // Required for mmap and MAP_FAILED +#include "sys/mman.h" // Required for mmap and MAP_FAILED // Memory::Arena Memory::arena_init() { // // TODO(GloriousTaco): The line below is stupidly unsafe. Replace malloc with mmap() and check the return value.