mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
Fix alpine builds
This commit is contained in:
parent
af21001f7a
commit
60a6e931ae
1 changed files with 4 additions and 2 deletions
|
@ -31,11 +31,13 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||
|
||||
#if defined(__linux__)
|
||||
#include <features.h>
|
||||
#include <linux/prctl.h> // PR_SET_VMA
|
||||
//#if defined(MI_NO_THP)
|
||||
#include <sys/prctl.h> // THP disable
|
||||
//#endif
|
||||
#if defined(__GLIBC__)
|
||||
#if !defined(PR_SET_VMA)
|
||||
#include <linux/prctl.h> // PR_SET_VMA
|
||||
#endif
|
||||
#include <linux/mman.h> // linux mmap flags
|
||||
#else
|
||||
#include <sys/mman.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue