pkgsrc/sysutils/nautilus-cd-burner/patches/patch-ac
2006-06-30 02:54:11 +00:00

37 lines
926 B
Text

$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;