summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/wee-command.c2
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"