summaryrefslogtreecommitdiff
path: root/audio/ardour/patches/patch-libs_pbd_mountpoint.cc
blob: 9d9299fb82e3d6801b60dddc0a2f923cdfa30838 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-libs_pbd_mountpoint.cc,v 1.1 2016/06/20 08:17:43 kamil Exp $

NetBSD uses statvfs for the functionality of statfs on Linux.

--- libs/pbd/mountpoint.cc.orig	2016-02-19 01:28:56.000000000 +0000
+++ libs/pbd/mountpoint.cc
@@ -116,7 +116,11 @@ mountpoint (string path)
 string
 mountpoint (string path)
 {
+#if defined(__NetBSD__)
+	struct statvfs *mntbufp = 0;
+#else
 	struct statfs *mntbufp = 0;
+#endif
 	int count;
 	unsigned int maxmatch = 0;
 	unsigned int matchlen;