$NetBSD: patch-aa,v 1.3 2004/06/30 00:11:23 wiz 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 #include #include @@ -16,6 +16,9 @@ #include #include #include +#if __NetBSD_Version__ >= 200040000 +#include +#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__ >= 200040000 + 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__ >= 200040000 + struct statvfs *mntbuf; +#else struct statfs *mntbuf; +#endif int ret=0,mntsize,i; if (f==-1) f=fd;