]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-90815: Fix mimalloc build on WASI (#111524)
authorVictor Stinner <vstinner@python.org>
Mon, 30 Oct 2023 22:10:22 +0000 (23:10 +0100)
committerGitHub <noreply@github.com>
Mon, 30 Oct 2023 22:10:22 +0000 (23:10 +0100)
Include <unistd.h> to get sbrk() function.

Objects/mimalloc/prim/wasi/prim.c

index 25e64fa3c40bf5d65a454e8e953ff1c6bc55c663..640dac0493f573213e7b10e6d1ac4adde239dd93 100644 (file)
@@ -11,6 +11,7 @@ terms of the MIT license. A copy of the license can be found in the file
 #include "mimalloc/internal.h"
 #include "mimalloc/atomic.h"
 #include "mimalloc/prim.h"
+#include <unistd.h>               // sbrk()
 
 //---------------------------------------------
 // Initialize