diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index 451d2e45d843d01b35c369b50129d6db223c2585..5dc4f8429eda0bc7e375fa41a2665c03a2d0828f 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -1,3 +1,4 @@
+#include "util.h"
 #include "hist.h"
 #include "session.h"
 #include "sort.h"