summaryrefslogtreecommitdiff
path: root/sysutils/e2fsprogs/patches/patch-af
blob: 2ab5f1f4a69b7c7934303456cbe6d321c5491325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$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;