From 1e50b825e338f1c3a4271ae74dadb254a43928d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Thu, 29 Jul 1999 18:47:34 +0200 Subject: [PATCH] Some versions of Linux have madvise, but not MADV_SEQUENTIAL. Rev: src/modules/Pipe/pipe.c:1.34 --- src/modules/Pipe/pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/Pipe/pipe.c b/src/modules/Pipe/pipe.c index d713c6ed9f..ad226967ed 100644 --- a/src/modules/Pipe/pipe.c +++ b/src/modules/Pipe/pipe.c @@ -26,7 +26,7 @@ #include <fcntl.h> -RCSID("$Id: pipe.c,v 1.33 1999/06/19 20:25:40 hubbe Exp $"); +RCSID("$Id: pipe.c,v 1.34 1999/07/29 16:47:34 grubba Exp $"); #include "threads.h" #include "stralloc.h" @@ -712,7 +712,7 @@ static void pipe_input(INT32 args) i->type=I_MMAP; i->len=s.st_size; i->u.mmap=m; -#ifdef HAVE_MADVISE +#if defined(HAVE_MADVISE) && defined(MADV_SEQUENTIAL) /* Mark the pages as sequential read only access... */ /* NOTE: -- GitLab