mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-18 21:19:31 +03:00
Forgotten header for MAP_HUGE_2MB
This commit is contained in:
parent
ffd0ae314b
commit
2618940e3c
1 changed files with 3 additions and 0 deletions
3
src/os.c
3
src/os.c
|
@ -20,6 +20,9 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
#elif defined(__wasi__)
|
#elif defined(__wasi__)
|
||||||
// stdlib.h is all we need, and has already been included in mimalloc.h
|
// stdlib.h is all we need, and has already been included in mimalloc.h
|
||||||
#else
|
#else
|
||||||
|
#if defined(__linux__)
|
||||||
|
#include <linux/mman.h> // mmap linux specific flags
|
||||||
|
#endif
|
||||||
#include <sys/mman.h> // mmap
|
#include <sys/mman.h> // mmap
|
||||||
#include <unistd.h> // sysconf
|
#include <unistd.h> // sysconf
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
|
|
Loading…
Add table
Reference in a new issue