$NetBSD$

--- src/fccache.c.orig	2009-11-16 12:24:52.000000000 -0500
+++ src/fccache.c	2011-11-08 20:23:37.000000000 -0500
@@ -28,6 +28,7 @@
 #include <dirent.h>
 #include <string.h>
 #include <sys/types.h>
+#include <sys/stat.h>
 #include <assert.h>
 #if defined(HAVE_MMAP) || defined(__CYGWIN__)
 #  include <unistd.h>
