diff --git a/tools/graph2dot.c b/tools/graph2dot.c
index 86d3d14b0905a6e84933aadb9b7037c52ce8d9de..12f1066c873e4645523b730fd16b91033be52e49 100644
--- a/tools/graph2dot.c
+++ b/tools/graph2dot.c
@@ -25,6 +25,7 @@
 #include <stdio.h>
 #include <string.h>
 
+#include "libavutil/channel_layout.h"
 #include "libavutil/mem.h"
 #include "libavutil/pixdesc.h"
 #include "libavutil/audioconvert.h"