diff options
Diffstat (limited to 'src/dlmalloc.c')
-rw-r--r-- | src/dlmalloc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dlmalloc.c b/src/dlmalloc.c index 338e430e..eb9c6487 100644 --- a/src/dlmalloc.c +++ b/src/dlmalloc.c @@ -1,4 +1,7 @@ #include "emscripten.h" +#define __THROW +#define __attribute_malloc__ +#define __wur /* This is a version (aka dlmalloc) of malloc/free/realloc written by @@ -590,7 +593,7 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP #define MMAP_CLEARS 1 #endif /* MMAP_CLEARS */ #ifndef HAVE_MREMAP -#ifdef linux +#if linux && !defined(EMSCRIPTEN) #define HAVE_MREMAP 1 #else /* linux */ #define HAVE_MREMAP 0 |