Skip to content

Commit 1673e44

Browse files
authoredOct 30, 2023
gh-90815: Fix mimalloc build on WASI (#111524)
Include <unistd.h> to get sbrk() function.
1 parent da4d314 commit 1673e44

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

+1
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)