diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-06 22:52:43 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-06 22:52:43 +0100 |
commit | ab2e29fb0f73b1d607d2765ebebd2a34bfcfbc65 (patch) | |
tree | 5792ab78a1f91f238350fa8e8455f4984932bab6 /src/core/wee-command.c | |
parent | 8c1df496aeaee6695ece5406956b1598a0234023 (diff) | |
download | weechat-ab2e29fb0f73b1d607d2765ebebd2a34bfcfbc65.zip |
core: include header malloc.h only if function malloc_trim is available
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r-- | src/core/wee-command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 4d468078b..d94ef9a46 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -40,7 +40,9 @@ #include <sys/types.h> #include <sys/stat.h> #include <errno.h> +#ifdef HAVE_MALLOC_TRIM #include <malloc.h> +#endif #include "weechat.h" #include "wee-command.h" |