diff --git a/tools/trasher.c b/tools/trasher.c
index 9cb623aa715ee781256d968890d451e619240316..114eb78a683db1d825d5ebb726ff1b3451328a9f 100644
--- a/tools/trasher.c
+++ b/tools/trasher.c
@@ -19,6 +19,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <inttypes.h>
 
 static uint32_t state;