Subject: Re: pkg/32884: pkg: multimedia/libmpeg3 statvfs support
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: pkgsrc-bugs
Date: 02/21/2006 10:45:05
The following reply was made to PR pkg/32884; it has been noted by GNATS.

From: Mark Davies <mark@mcs.vuw.ac.nz>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/32884: pkg: multimedia/libmpeg3 statvfs support
Date: Tue, 21 Feb 2006 23:39:59 +1300

 On Tuesday 21 February 2006 06:55, eric@cirr.com wrote:
 > >Fix:
 >
 > #   the following small change allows it to build on NetBSD 2.0G.
 > #   (yes, I know I should upgrade.)
 
 > ---- mpeg3io.c.orig	2001-05-20 13:05:26.000000000 +1000
 > +--- mpeg3io.c.orig	2001-05-19 22:05:26.000000000 -0500
 >  +++ mpeg3io.c
 >  @@ -1,8 +1,21 @@
 >   #include "mpeg3private.h"
 > @@ -12,7 +12,7 @@
 >  +# include <sys/param.h>
 >  +# include <sys/mount.h>
 >  +
 > -+# if defined(__NetBSD__) && __NetBSD_Version__ >= 299000900   /* 2.99.9
 > */ ++# if defined(__NetBSD__) && __NetBSD_Version__ >= 200040000   /*
 > 2.99.9 */ +#  define statfs statvfs
 >  +# endif
 >  +
 
 
 Could do this as:
 
 # if defined(__NetBSD__) && defined(ST_RDONLY) 
 
 as ST_RDONLY is only defined on versions that have statvfs() and the
 # include <sys/mount.h>  will pull the definition in.
 
 cheers
 mark