pkgsrc/sysutils/e2fsprogs/patches/patch-af

16 lines
498 B
Text

$NetBSD: patch-af,v 1.2 2005/09/08 22:28:03 abs Exp $
--- lib/ext2fs/ismounted.c.orig 2002-10-31 20:17:24.000000000 +0000
+++ lib/ext2fs/ismounted.c
@@ -193,7 +193,11 @@ static errcode_t check_mntent(const char
static errcode_t check_getmntinfo(const char *file, int *mount_flags,
char *mtpt, int mtlen)
{
+#if defined(__NetBSD__) && __NetBSD_Version__ >= 299000900
+ struct statvfs *mp;
+#else
struct statfs *mp;
+#endif
int len, n;
const char *s1;
char *s2;