$NetBSD: patch-ac,v 1.6 2005/08/28 09:07:21 tron Exp $

--- src/stat.c.orig	Thu Feb  5 08:46:12 2004
+++ src/stat.c
@@ -86,6 +86,12 @@
 # endif
 #endif
 
+#if (defined(__NetBSD__) && (__NetBSD_Version__ > 299000000)) || defined(__INTERIX)
+#include <sys/statvfs.h>
+#define	statfs					statvfs
+#define	STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME	f_fstypename
+#endif
+
 #define PROGRAM_NAME "stat"
 
 #define AUTHORS "Michael Meskes"
