logo       

Re: Review request: libstatgrab: msg#00016

os.netbsd.devel.pkgsrc.wip.review

Subject: Re: Review request: libstatgrab

* Tim Bishop, Thu, 20 May 2004 15:42:04 +0100:
> I've incorporated the feedback I got last time I asked for a review
> of libstatgrab, and I've updated to a new version. It now supports
> the current branch.

This package doesn't build on NetBSD 2.0D or later due to the
statfs/statvfs problem. Adding the following patch will fix it.

--
Min Sik Kim


$NetBSD$

--- src/libstatgrab/disk_stats.c.orig 2004-04-08 09:30:43.000000000 -0500
+++ src/libstatgrab/disk_stats.c
@@ -122,8 +122,12 @@ sg_fs_stats *sg_get_fs_stats(int *entrie
#endif
#ifdef ALLBSD
int nummnt;
+#if defined(__NetBSD__) && (__NetBSD_Version__ > 200030000)
+ struct statvfs *mp;
+#else
struct statfs *mp;
#endif
+#endif

#ifdef ALLBSD
nummnt=getmntinfo(&mp , MNT_LOCAL);

Attachment: pgp4sCKXeaioo.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise