pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/32884: pkg: multimedia/libmpeg3 statvfs support
The following reply was made to PR pkg/32884; it has been noted by GNATS.
From: Mark Davies <mark%mcs.vuw.ac.nz@localhost>
To: gnats-bugs%netbsd.org@localhost
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@localhost 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
Home |
Main Index |
Thread Index |
Old Index