From 5b6f5c6609c530943310754028d2628d984b6595 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 11 Jun 2008 10:21:43 +0200 Subject: [PATCH] Older Linux versions do not have O_NOATIME Signed-off-by: Jens Axboe --- os/os-linux.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os/os-linux.h b/os/os-linux.h index 72950c0e..791ec7a7 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -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 -- 2.25.1