$NetBSD: patch-al,v 1.3 2006/09/22 19:57:00 drochner Exp $ --- daemon/fstype.c.orig 2006-01-20 19:42:08.000000000 +0100 +++ daemon/fstype.c @@ -89,8 +89,10 @@ static int xatoi P_((char *cp)); #ifdef FSTYPE_STATVFS /* SVR4. */ #include +#ifndef __NetBSD__ #include #endif +#endif #ifdef FSTYPE_STATFS /* 4.4BSD. */ #include /* NetBSD needs this. */ @@ -352,8 +354,12 @@ filesystem_type_uncached (char *path, ch fstype_internal_error (1, errno, "%s", path); } else +#ifdef __NetBSD__ + type = fss.f_fstypename; +#else type = fss.f_basetype; #endif +#endif #ifdef FSTYPE_STATFS /* 4.4BSD. */ struct statfs fss;