summaryrefslogtreecommitdiff
path: root/audio/madplay
diff options
context:
space:
mode:
authorpooka <pooka@pkgsrc.org>2000-11-23 19:37:13 +0000
committerpooka <pooka@pkgsrc.org>2000-11-23 19:37:13 +0000
commit3de5c7482d5c5427b8cfe9ce08eb47f210cab0dc (patch)
tree785ed442c31a9f52836af89830062c6ed09c2368 /audio/madplay
parent7eee86006ef66ae5cfbdd92495f483c1fd1ba607 (diff)
downloadpkgsrc-3de5c7482d5c5427b8cfe9ce08eb47f210cab0dc.tar.gz
Give madvise() to mmap
Diffstat (limited to 'audio/madplay')
-rw-r--r--audio/madplay/files/patch-sum3
-rw-r--r--audio/madplay/patches/patch-ad24
2 files changed, 26 insertions, 1 deletions
diff --git a/audio/madplay/files/patch-sum b/audio/madplay/files/patch-sum
index 53e20362b81..453e904878c 100644
--- a/audio/madplay/files/patch-sum
+++ b/audio/madplay/files/patch-sum
@@ -1,3 +1,4 @@
-$NetBSD: patch-sum,v 1.2 2000/11/23 00:34:23 wiz Exp $
+$NetBSD: patch-sum,v 1.3 2000/11/23 19:37:13 pooka Exp $
MD5 (patch-ac) = 85b672e3f56852ac4ea1ae97ba763460
+MD5 (patch-ad) = 93aaf81a4314c633a9ca99f2ca7898cc
diff --git a/audio/madplay/patches/patch-ad b/audio/madplay/patches/patch-ad
new file mode 100644
index 00000000000..5eb08837837
--- /dev/null
+++ b/audio/madplay/patches/patch-ad
@@ -0,0 +1,24 @@
+$NetBSD: patch-ad,v 1.1 2000/11/23 19:37:14 pooka Exp $
+
+--- player.c.orig Thu Nov 16 12:51:04 2000
++++ player.c Wed Nov 22 13:38:04 2000
+@@ -243,6 +243,9 @@
+ input->data = 0;
+ return MAD_FLOW_BREAK;
+ }
++#ifdef __NetBSD__
++ madvise(input->fdm, stat.st_size, MADV_SEQUENTIAL);
++#endif
+
+ input->data = input->fdm;
+ input->length = stat.st_size;
+@@ -709,6 +712,9 @@
+ error("decode", ":mmap");
+ return -1;
+ }
++#ifdef __NetBSD__
++ madvise(player->input.fdm, stat.st_size, MADV_SEQUENTIAL);
++#endif
+
+ player->input.data = player->input.fdm;
+ player->input.length = stat.st_size;