diff options
author | Jean Boussier <byroot@ruby-lang.org> | 2023-09-15 23:08:59 +0200 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2023-09-16 09:52:46 +0200 |
commit | c3ef7a528b1fdfe7fc98b846fd2ccb0c07443682 (patch) | |
tree | 67fa2929ac1f18807bc45ecb16657250443f4534 /gc.c | |
parent | e9b503f1bb9692eda1d1f55f62c19d861b88a0d5 (diff) |
Fix malloc_trim() on wasm32
```
compiling gc.c
gc.c:9746:5: error: implicit declaration of function 'malloc_trim' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
malloc_trim(0);
^
1 error generated.
```
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -48,7 +48,7 @@ # endif #endif -#ifdef HAVE_MALLOC_USABLE_SIZE +#if defined(HAVE_MALLOC_USABLE_SIZE) || defined(HAVE_MALLOC_TRIM) # ifdef RUBY_ALTERNATIVE_MALLOC_HEADER /* Alternative malloc header is included in ruby/missing.h */ # elif defined(HAVE_MALLOC_H) |