diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-09-01 05:15:56 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-09-01 05:15:56 +0000 |
commit | dc1e3060eb9244a0d325f1dae7fe88757066b90d (patch) | |
tree | 6377e78c0c5077229d900a51581ab38bd8533275 /src/os/unix/ngx_files.h | |
parent | acdb80aed45272782ad664eeb9687f1a14b844d5 (diff) | |
download | nginx-dc1e3060eb9244a0d325f1dae7fe88757066b90d.tar.gz nginx-dc1e3060eb9244a0d325f1dae7fe88757066b90d.zip |
Linux O_NOATIME support
Diffstat (limited to 'src/os/unix/ngx_files.h')
-rw-r--r-- | src/os/unix/ngx_files.h | 5 |
1 files changed, 5 insertions, 0 deletions
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()" |