1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
$NetBSD: patch-aa,v 1.4 2005/09/06 08:10:59 abs Exp $
--- transport.hxx.orig 2004-04-19 18:25:06.000000000 +0200
+++ transport.hxx
@@ -6,7 +6,7 @@
// For further details see http://fy.chalmers.se/~appro/linux/DVD+RW/
//
-#if defined(__unix) || defined(__unix__)
+#if defined(__unix) || defined(__unix__) || defined(__NetBSD__)
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -16,6 +16,9 @@
#include <fcntl.h>
#include <poll.h>
#include <sys/time.h>
+#if __NetBSD_Version__ >= 299000900
+#include <sys/statvfs.h>
+#endif
inline long getmsecs()
{ struct timeval tv;
@@ -407,7 +410,11 @@ public:
// mounted, so that it could as well just return 0;
int umount(int f=-1)
{ struct stat fsb,msb;
+#if __NetBSD_Version__ >= 299000900
+ struct statvfs *mntbuf;
+#else
struct statfs *mntbuf;
+#endif
int ret=0,mntsize,i;
if (f==-1) f=fd;
@@ -603,7 +610,11 @@ public:
}
int umount(int f=-1)
{ struct stat fsb,msb;
+#if __NetBSD_Version__ >= 299000900
+ struct statvfs *mntbuf;
+#else
struct statfs *mntbuf;
+#endif
int ret=0,mntsize,i;
if (f==-1) f=fd;
|