aboutsummaryrefslogtreecommitdiff
path: root/src/common_memory.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-04-12 12:33:25 +0100
committergingerBill <bill@gingerbill.org>2024-04-12 12:33:25 +0100
commit3426af2d6cb5944d373470d10ca91f827a8f39ca (patch)
tree0c3550941c098e75348ff0ccbcfd9db9b8a97264 /src/common_memory.cpp
parentefc3f9916ec4217cd511f561166cb5f4348295c5 (diff)
Fix #3415
Diffstat (limited to 'src/common_memory.cpp')
-rw-r--r--src/common_memory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common_memory.cpp b/src/common_memory.cpp
index c6ee88f03..60e570eee 100644
--- a/src/common_memory.cpp
+++ b/src/common_memory.cpp
@@ -163,6 +163,10 @@ gb_internal void platform_virtual_memory_protect(void *memory, isize size);
GB_ASSERT(is_protected);
}
#else
+ #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
+ #define MAP_ANONYMOUS MAP_ANON
+ #endif
+
gb_internal void platform_virtual_memory_init(void) {
global_platform_memory_block_sentinel.prev = &global_platform_memory_block_sentinel;
global_platform_memory_block_sentinel.next = &global_platform_memory_block_sentinel;