From dc1e3060eb9244a0d325f1dae7fe88757066b90d Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 1 Sep 2006 05:15:56 +0000 Subject: Linux O_NOATIME support --- src/os/unix/ngx_files.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/os/unix/ngx_files.h') diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index ff2515699..a5724bd20 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h @@ -28,6 +28,11 @@ #define NGX_FILE_TRUNCATE O_TRUNC #define NGX_FILE_APPEND O_APPEND +#ifdef O_NOATIME +#define NGX_FILE_NOATIME O_NOATIME +#else +#define NGX_FILE_NOATIME 0 +#endif #define ngx_close_file close #define ngx_close_file_n "close()" -- cgit v1.2.3