mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 06:08:42 +03:00
Include unistd.h for sbrk in wasi primitive
This commit is contained in:
parent
24668b9daf
commit
da5d344f3f
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ int _mi_prim_free(void* addr, size_t size ) {
|
|||
//---------------------------------------------
|
||||
|
||||
#if defined(MI_USE_SBRK)
|
||||
#include <unistd.h>
|
||||
static void* mi_memory_grow( size_t size ) {
|
||||
void* p = sbrk(size);
|
||||
if (p == (void*)(-1)) return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue