--- a/util/subst.c
+++ b/util/subst.c
@@ -9,6 +9,7 @@
 #include "config.h"
 #else
 #define HAVE_SYS_TIME_H
+#define HAVE_SYS_STAT_H
 #endif
 #include <stdio.h>
 #include <errno.h>