summaryrefslogtreecommitdiff
path: root/audio/tunepimp/patches/patch-ab
blob: aa640a55f8cc485309710ad30051d0156dcc6aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.2 2004/11/01 12:47:22 markd Exp $

--- lib/write.cpp.orig	2004-03-25 22:12:43.000000000 +1200
+++ lib/write.cpp
@@ -896,8 +896,17 @@ bool WriteThread::diskSpaceTest(const st
 #else
 //---------------------------------------------------------------------------
 
+#if defined(__NetBSD__) && (__NetBSD_Version__ >= 200040000) /* NetBSD 2.0D */
+#define HAVE_STATVFS 1
+#endif
+
 bool WriteThread::diskSpaceTest(const string &fileName, unsigned long fileSize)
 {
+#if defined(HAVE_STATVFS)
+#define statfs statvfs
+#define f_bsize f_frsize
+#endif
+
     struct statfs stat;
 
     string path = extractFilePath(fileName);