diff options
author | pooka <pooka> | 2000-03-01 22:26:18 +0000 |
---|---|---|
committer | pooka <pooka> | 2000-03-01 22:26:18 +0000 |
commit | f0ee7bc36b99cb01970f37e734f2d9f480fa6949 (patch) | |
tree | 5f46f846bc267b7fcd805a3e451cb103122dd050 | |
parent | 7608f18712db09af0406be265831fc27abd9beb5 (diff) | |
download | pkgsrc-f0ee7bc36b99cb01970f37e734f2d9f480fa6949.tar.gz |
Include sys/param.h to make check against __NetBSD_Version__ actually work.
-rw-r--r-- | audio/mpg123/files/patch-sum | 4 | ||||
-rw-r--r-- | audio/mpg123/patches/patch-al | 22 |
2 files changed, 18 insertions, 8 deletions
diff --git a/audio/mpg123/files/patch-sum b/audio/mpg123/files/patch-sum index 85813d276ba..16c8014c04e 100644 --- a/audio/mpg123/files/patch-sum +++ b/audio/mpg123/files/patch-sum @@ -1,4 +1,4 @@ -$NetBSD: patch-sum,v 1.7 2000/03/01 22:03:37 pooka Exp $ +$NetBSD: patch-sum,v 1.8 2000/03/01 22:26:18 pooka Exp $ MD5 (patch-aa) = d19cf8f63d73356d1f322df231f7671a MD5 (patch-ab) = d2be05cddc78b15c1dda564dde29d693 @@ -11,4 +11,4 @@ MD5 (patch-ah) = 2a6c268ce8013be6bdaa9e0a9c5c614f MD5 (patch-ai) = 925dea9e16b9f99704d6387b8d50b7ed MD5 (patch-aj) = f2eb0611d82b6cdf06069f109825477a MD5 (patch-ak) = bdc05c703d0bfa3d33733619e4d66488 -MD5 (patch-al) = d554a748cbe72c68b55f63ab2bd4ea71 +MD5 (patch-al) = 1fe0e9240ba33c817f88674196994121 diff --git a/audio/mpg123/patches/patch-al b/audio/mpg123/patches/patch-al index dde6949b058..2af31da2dcb 100644 --- a/audio/mpg123/patches/patch-al +++ b/audio/mpg123/patches/patch-al @@ -1,16 +1,26 @@ -$NetBSD: patch-al,v 1.1 2000/03/01 22:03:37 pooka Exp $ +$NetBSD: patch-al,v 1.2 2000/03/01 22:26:19 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 @@ ++++ readers.c Thu Mar 2 00:21:17 2000 +@@ -1,5 +1,9 @@ + #include <stdlib.h> + ++#ifdef __NetBSD__ ++#include <sys/param.h> ++#endif ++ + #include <sys/types.h> + #include <sys/stat.h> + #include <fcntl.h> +@@ -249,6 +253,11 @@ + mmap(NULL, len, PROT_READ, MAP_SHARED , rds->filept, 0); 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) |