2013-09-26 17:14:40 +02:00

29 lines
696 B
Plaintext

$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 <sys/statvfs.h>
+#ifndef __NetBSD__
#include <sys/fstyp.h>
#endif
+#endif
#ifdef FSTYPE_STATFS /* 4.4BSD. */
#include <sys/param.h> /* 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;