From 80e5e2a9d8ee67e0ac4a63650f182bae40797215 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 10 May 2004 18:29:30 +0000 Subject: Make this build under NetBSD 2.0D and above with statvfs(2). --- audio/gqmpeg/distinfo | 3 ++- audio/gqmpeg/patches/patch-ab | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 audio/gqmpeg/patches/patch-ab diff --git a/audio/gqmpeg/distinfo b/audio/gqmpeg/distinfo index cc2f8432804..df0e38804e2 100644 --- a/audio/gqmpeg/distinfo +++ b/audio/gqmpeg/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.22 2003/02/14 22:33:02 wiz Exp $ +$NetBSD: distinfo,v 1.23 2004/05/10 18:29:30 tron Exp $ SHA1 (gqmpeg-0.20.0.tar.gz) = e1a69f49c3a4063f4e16c6f3242b49eb31718418 Size (gqmpeg-0.20.0.tar.gz) = 966991 bytes SHA1 (patch-aa) = 00f989d188bd6b578c492505204c68017f9445a1 +SHA1 (patch-ab) = 5bad23e415c2768019f57f0f2d9421057dbcb1b5 diff --git a/audio/gqmpeg/patches/patch-ab b/audio/gqmpeg/patches/patch-ab new file mode 100644 index 00000000000..370ce9053c0 --- /dev/null +++ b/audio/gqmpeg/patches/patch-ab @@ -0,0 +1,16 @@ +$NetBSD: patch-ab,v 1.22 2004/05/10 18:29:30 tron Exp $ + +--- src/cpu_perc.c.orig 2002-05-02 21:08:34.000000000 +0200 ++++ src/cpu_perc.c 2004-05-10 20:22:09.000000000 +0200 +@@ -66,7 +66,11 @@ + /* find where the proc fs is mounted, some strange people could mount it + in another place than /proc, it can even be not mounted at all */ + { ++#if defined(__NetBSD__) && (__NetBSD_Version__ > 200030000) ++ struct statvfs *mntbufp; ++#else + struct statfs *mntbufp; ++#endif + int fs_count; + int procfs_found = 0; + -- cgit v1.2.3