Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Mar 27, 2024
1 parent b6835a3 commit cc1aa4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mono/mono/utils/dlmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
#define USE_LOCKS 1

#ifdef HOST_WASM
#pragma clang diagnostic ignored "-Wunused-variable"
/* Use sbrk to allocate memory, and never release pages since emscripten mmap is fake */
#define HAVE_MORECORE 1
#define NO_MALLINFO 1
#undef HAVE_MMAP
#define HAVE_MMAP 0
#else
/* Use mmap for allocating memory */
Expand Down

0 comments on commit cc1aa4c

Please sign in to comment.