summaryrefslogtreecommitdiff
path: root/databases/rrdtool/patches/patch-aa
blob: 0aa0d38c07ed68787c728dc4265b30cc75932bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-aa,v 1.9 2007/11/21 07:50:14 martti Exp $

Index: src/rrd_update.c
===================================================================
--- src/rrd_update.c	(revision 1235)
+++ src/rrd_update.c	(working copy)
@@ -427,10 +427,10 @@
         fclose(rrd_file);
 	return(-1);
     }
-#ifdef HAVE_MADVISE
+#ifdef USE_MADVISE
     /* when we use mmaping we tell the kernel the mmap equivalent
        of POSIX_FADV_RANDOM */
-    madvise(rrd_mmaped_file,rrd_filesize,POSIX_MADV_RANDOM);
+    madvise(rrd_mmaped_file,rrd_filesize,MADV_RANDOM);
 #endif
 #endif
     /* loop through the arguments. */