--- a/src/utils/readfile.cpp
+++ b/src/utils/readfile.cpp
@@ -191,7 +191,9 @@
 }
 
 #else // Test
-
+#include "autoconfig.h"
+
+#include <stdio.h>
 #include <sys/stat.h>
 #include <stdlib.h>
 #include <unistd.h>