summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/emscripten/patches/0002-dlmalloc-define-sbrk.patch
blob: 19ade9a7ea9b7c2dc9836e0153132486173932d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/system/lib/dlmalloc.c b/system/lib/dlmalloc.c
--- a/system/lib/dlmalloc.c
+++ b/system/lib/dlmalloc.c
@@ -1564,7 +1564,8 @@ size_t bulk_free(void**, size_t n_elements) __attribute__((weak, alias("dlbulk_f
 #endif /* LACKS_FCNTL_H */
 #endif /* HAVE_MMAP */
 #ifndef LACKS_UNISTD_H
-#include <unistd.h>     /* for sbrk, sysconf */
+// #include <unistd.h>     /* for sbrk, sysconf */
+extern void*     sbrk(ptrdiff_t);
 #else /* LACKS_UNISTD_H */
 #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
 extern void*     sbrk(ptrdiff_t);