pkgsrc/misc/gnuls/patches/patch-ac
abs f72dc9cd65 Catch some NetBSD statvfs() checks phrased alternatively as > 200030000
rather than >= 200040000 and one enterprisingly hidden as > 200050000
2005-09-08 22:37:53 +00:00

16 lines
442 B
Text

$NetBSD: patch-ac,v 1.2 2005/09/08 22:37:54 abs Exp $
--- lib/mountlist.c.orig 2004-01-26 09:58:12.000000000 +0100
+++ lib/mountlist.c 2004-05-18 20:56:57.000000000 +0200
@@ -173,6 +173,11 @@
#if MOUNTED_GETMNTINFO
+# if defined(__NetBSD__) && (__NetBSD_Version__ >= 299000900)
+# define statfs statvfs
+# define HAVE_F_FSTYPENAME_IN_STATFS 1
+# endif
+
# if ! HAVE_F_FSTYPENAME_IN_STATFS
static char *
fstype_to_string (short t)