Fix #3415
This commit is contained in:
1 parent
efc3f9916e
commit
3426af2d6c
1 file changed
+4
@@ -163,6 +163,10 @@ gb_internal void platform_virtual_memory_protect(void *memory, isize size);
|
|||||||
GB_ASSERT(is_protected);
|
GB_ASSERT(is_protected);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
|
||||||
|
#define MAP_ANONYMOUS MAP_ANON
|
||||||
|
#endif
|
||||||
|
|
||||||
gb_internal void platform_virtual_memory_init(void) {
|
gb_internal void platform_virtual_memory_init(void) {
|
||||||
global_platform_memory_block_sentinel.prev = &global_platform_memory_block_sentinel;
|
global_platform_memory_block_sentinel.prev = &global_platform_memory_block_sentinel;
|
||||||
global_platform_memory_block_sentinel.next = &global_platform_memory_block_sentinel;
|
global_platform_memory_block_sentinel.next = &global_platform_memory_block_sentinel;
|
||||||
|
|||||||
Reference in new issue
Block a user