diff options
Diffstat (limited to '')
| -rw-r--r-- | src/os/unix/ngx_files.h | 5 | ||||
| -rw-r--r-- | src/os/win32/ngx_files.h | 1 |
2 files changed, 6 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()" diff --git a/src/os/win32/ngx_files.h b/src/os/win32/ngx_files.h index c42c055f3..57607e3e7 100644 --- a/src/os/win32/ngx_files.h +++ b/src/os/win32/ngx_files.h @@ -42,6 +42,7 @@ #define NGX_FILE_CREATE_OR_OPEN OPEN_ALWAYS #define NGX_FILE_OPEN OPEN_EXISTING #define NGX_FILE_APPEND 0 +#define NGX_FILE_NOATIME 0 ngx_int_t ngx_file_append_mode(ngx_fd_t fd); |
