Older Linux versions do not have O_NOATIME
authorJens Axboe <jens.axboe@oracle.com>
Wed, 11 Jun 2008 08:21:43 +0000 (10:21 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 11 Jun 2008 08:21:43 +0000 (10:21 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
os/os-linux.h

index 72950c0e8894b24c6efbd253a84907948e75c262..791ec7a78ae1693ae278fec4cc599a6e1566e324 100644 (file)
@@ -230,6 +230,10 @@ static inline int fio_lookup_raw(dev_t dev, int *majdev, int *mindev)
        return 0;
 }
 
+#ifdef O_NOATIME
 #define FIO_O_NOATIME  O_NOATIME
+#else
+#define FIO_O_NOATIME  0
+#endif
 
 #endif