diff options
author | pooka <pooka> | 2000-03-01 22:03:37 +0000 |
---|---|---|
committer | pooka <pooka> | 2000-03-01 22:03:37 +0000 |
commit | 7608f18712db09af0406be265831fc27abd9beb5 (patch) | |
tree | 3691a9847d73cfdf1c73eaf400d3960481836496 /audio/mpg123/patches | |
parent | bd81389d59eee5af155c0f147841fe9fea858246 (diff) | |
download | pkgsrc-7608f18712db09af0406be265831fc27abd9beb5.tar.gz |
Give the VM system a hint that we'll be using the mmap()ed data for
sequential read.
add RCS tag to patch-aa
Diffstat (limited to 'audio/mpg123/patches')
-rw-r--r-- | audio/mpg123/patches/patch-aa | 2 | ||||
-rw-r--r-- | audio/mpg123/patches/patch-al | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/audio/mpg123/patches/patch-aa b/audio/mpg123/patches/patch-aa index 5f288099c85..92b08385279 100644 --- a/audio/mpg123/patches/patch-aa +++ b/audio/mpg123/patches/patch-aa @@ -1,3 +1,5 @@ +$NetBSD: patch-aa,v 1.14 2000/03/01 22:03:37 pooka Exp $ + --- Makefile.orig Fri Feb 18 19:45:31 2000 +++ Makefile Fri Feb 18 19:46:51 2000 @@ -54,6 +54,10 @@ diff --git a/audio/mpg123/patches/patch-al b/audio/mpg123/patches/patch-al new file mode 100644 index 00000000000..dde6949b058 --- /dev/null +++ b/audio/mpg123/patches/patch-al @@ -0,0 +1,16 @@ +$NetBSD: patch-al,v 1.1 2000/03/01 22:03:37 pooka Exp $ + +--- readers.c.orig Thu Mar 4 13:03:49 1999 ++++ readers.c Wed Mar 1 23:49:46 2000 +@@ -250,6 +250,11 @@ + if(!mapbuf || mapbuf == MAP_FAILED) + return -1; + ++#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104030000) ++ if(madvise(mappnt, len, MADV_SEQUENTIAL) < 0) ++ fprintf(stderr,"madvise failed, continuing anyways..\n"); ++#endif ++ + mapend = mapbuf + len; + + if(param.verbose > 1) |