diff --git a/utils/astcanary.c b/utils/astcanary.c
index bcf2abb696ad7f144e9e573077754b5840448191..8cfa3feb73619ed6203a377c11e8bb24b197b726 100644
--- a/utils/astcanary.c
+++ b/utils/astcanary.c
@@ -25,6 +25,7 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdio.h>
 
 /*!\brief
  * At one time, canaries were carried along with coal miners down