mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-30 23:43:39 +08:00
linux build correction
MAP_HUGE_2MB is linux specific and the related header is not automatically included.
This commit is contained in:
parent
cbc826beb5
commit
b0003cb101
3
src/os.c
3
src/os.c
@ -21,6 +21,9 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||
#else
|
||||
#include <sys/mman.h> // mmap
|
||||
#include <unistd.h> // sysconf
|
||||
#if defined(__linux__)
|
||||
#include <linux/mman.h> // linux mmap flags
|
||||
#endif
|
||||
#if defined(__APPLE__)
|
||||
#include <mach/vm_statistics.h>
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user