$NetBSD: patch-af,v 1.6 2008/03/07 22:40:29 tron Exp $

--- lib/ext2fs/ismounted.c.orig	2008-02-28 23:03:53.000000000 +0000
+++ lib/ext2fs/ismounted.c	2008-03-07 21:08:08.000000000 +0000
@@ -196,7 +196,11 @@
 static errcode_t check_getmntinfo(const char *file, int *mount_flags,
 				  char *mtpt, int mtlen)
 {
-	struct statfs *mp;
+#if defined(__NetBSD__) && __NetBSD_Version__ >= 299000900
+        struct statvfs *mp;
+#else
+        struct statfs *mp;
+#endif
         int    len, n;
         const  char   *s1;
 	char	*s2;
