blob: 42e4dbc86124491378f6e4978ef478a15f8fdac1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-lib_ismounted.c,v 1.1 2017/12/08 08:03:35 adam Exp $
Fix build on NetBSD.
--- lib/ismounted.c.orig 2016-11-02 12:57:31.000000000 +0000
+++ lib/ismounted.c
@@ -214,7 +214,11 @@ static int check_mntent(const char *file
static int check_getmntinfo(const char *file, int *mount_flags,
char *mtpt, int mtlen)
{
+#ifdef __NetBSD__
+ struct statvfs *mp;
+#else
struct statfs *mp;
+#endif
int len, n;
const char *s1;
char *s2;
|