mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
29 lines
696 B
Plaintext
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;
|