From: Jens Axboe Date: Wed, 11 Jun 2008 08:21:43 +0000 (+0200) Subject: Older Linux versions do not have O_NOATIME X-Git-Tag: fio-1.22-rc1~32 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=5b6f5c6609c530943310754028d2628d984b6595;p=fio.git Older Linux versions do not have O_NOATIME Signed-off-by: Jens Axboe --- 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