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