summaryrefslogtreecommitdiff
path: root/sysutils/nautilus-cd-burner/patches/patch-ac
blob: 60126badd0b0c32fa450f8b44b5e24eea139d021 (plain)
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
$NetBSD: patch-ac,v 1.3 2006/06/30 02:54:11 joerg Exp $

--- transport.hxx.orig	2005-02-22 16:42:41.000000000 -0800
+++ transport.hxx
@@ -441,7 +441,11 @@ public:
     // mounted, so that it could as well just return 0;
     int umount(int f=-1)
     { struct stat    fsb,msb;
+#if defined(HAVE_STATVFS) && defined(__NetBSD__)
+      struct statvfs *mntbuf;
+#else
       struct statfs *mntbuf;
+#endif
       int            ret=0,mntsize,i;
 
 	if (f==-1) f=fd;
@@ -470,7 +474,7 @@ public:
     {	return 1;   }
 };
 
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
 
 #include <sys/ioctl.h>
 #include <camlib.h>
@@ -637,7 +641,11 @@ public:
     }
     int umount(int f=-1)
     { struct stat    fsb,msb;
+#if defined(HAVE_STATVFS) && defined(__NetBSD__)
+      struct statvfs *mntbuf;
+#else
       struct statfs *mntbuf;
+#endif
       int            ret=0,mntsize,i;
 
 	if (f==-1) f=fd;