Code

now the fadvise code actually compiles ... let the testing begin.
[rrdtool.git] / src / rrd_create.c
index 521c72611488f1c4e5fc68d28d357ac94b6e0fab..6f4c8043da656128e2adc2be9971c54edf6a8227 100644 (file)
@@ -690,7 +690,7 @@ rrd_create_fn(const char *file_name, rrd_t *rrd)
        return(-1);
     }
     
-#ifdef POSIX_FADVISE
+#ifdef HAVE_POSIX_FADVISE
     /* this file is not going to be read again any time
        soon, so we drop everything except the header portion from
        the buffer cache. for this to work, we have to fdsync the file