blob: 85edd1f2e4e9bcc2b221b7a942ef7b4ccb1bd4d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
$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;
|