Code

now the fadvise code actually compiles ... let the testing begin.
[rrdtool.git] / src / rrd_open.c
index 8f08176494fe48f01b6f889f491a28209096603a..3740750fb73e6839ead4d5c7a13a54e02547ad1c 100644 (file)
@@ -88,7 +88,7 @@ rrd_open(const char *file_name, FILE **in_file, rrd_t *rrd, int rdwr)
         return (-1);
     }
 
-#ifdef POSIX_FADVISE
+#ifdef HAVE_POSIX_FADVISE
     /* In general we need no read-ahead when dealing with rrd_files.
        When we stop reading, it is highly unlikely that we start up again.
        In this manner we actually save time and diskaccess (and buffer cache).