$NetBSD: patch-ai,v 1.3 2007/09/19 22:22:38 wiz Exp $

--- modules/fstype.c.orig	2004-08-12 11:08:56.000000000 +0200
+++ modules/fstype.c
@@ -349,8 +349,12 @@ filesystem_type_uncached (char *path, ch
 	fstype_internal_error (1, errno, "%s", path);
     }
   else
+#if defined(__NetBSD__)
+    type = fss.f_fstypename;
+#else
     type = fss.f_basetype;
 #endif
+#endif
 
 #ifdef FSTYPE_STATFS		/* 4.4BSD.  */
   struct statfs fss;
