Skip to content

Commit 622c99d

Browse files
committed
gh-90815: Fix mimalloc build on WASI
Include <unistd.h> to get sbrk() function.
1 parent cd6e0a0 commit 622c99d

File tree

1 file changed

+1
-0
lines changed
  • Objects/mimalloc/prim/wasi

1 file changed

+1
-0
lines changed

Objects/mimalloc/prim/wasi/prim.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ terms of the MIT license. A copy of the license can be found in the file
1111
#include "mimalloc/internal.h"
1212
#include "mimalloc/atomic.h"
1313
#include "mimalloc/prim.h"
14+
#include <unistd.h> // sbrk()
1415

1516
//---------------------------------------------
1617
// Initialize

0 commit comments

Comments
 (0)