$NetBSD: patch-ae,v 1.6 2013/02/28 11:24:15 othyro Exp $

Include stat.h if the system has it.

--- include/compat.h.orig	2011-12-02 14:53:04.000000000 +0000
+++ include/compat.h
@@ -79,6 +79,10 @@
 #  include <sys/types.h>
 #endif
 
+#ifdef HAVE_SYS_STAT_H
+#  include <sys/stat.h>
+#endif
+
 #ifdef HAVE_CTYPE_H
 #  include <ctype.h>
 #endif
