summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-05-10 18:29:30 +0000
committertron <tron@pkgsrc.org>2004-05-10 18:29:30 +0000
commit65a44d13d238dda8ef71074ea5ec0a6a868a4fea (patch)
treedc2d474437f9b0e802d041a0027164dc9bb75264
parent1d8caacc54548d35c3e043e249af0aff27a0b399 (diff)
downloadpkgsrc-65a44d13d238dda8ef71074ea5ec0a6a868a4fea.tar.gz
Make this build under NetBSD 2.0D and above with statvfs(2).
-rw-r--r--audio/gqmpeg/distinfo3
-rw-r--r--audio/gqmpeg/patches/patch-ab16
2 files changed, 18 insertions, 1 deletions
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;
+