From f0ee7bc36b99cb01970f37e734f2d9f480fa6949 Mon Sep 17 00:00:00 2001 From: pooka Date: Wed, 1 Mar 2000 22:26:18 +0000 Subject: Include sys/param.h to make check against __NetBSD_Version__ actually work. --- audio/mpg123/patches/patch-al | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'audio/mpg123/patches') 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 + ++#ifdef __NetBSD__ ++#include ++#endif ++ + #include + #include + #include +@@ -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) -- cgit v1.2.3