Skip to content

Commit 49369ea

Browse files
vstinnerGlyphack
authored andcommittedJan 27, 2024
pythongh-90815: Fix mimalloc build on WASI (python#111524)
Include <unistd.h> to get sbrk() function.
1 parent a10503c commit 49369ea

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)