From 2ec2e35efe1bf1b704d0e9ca1fa9667d9a5a5447 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 8 Apr 2009 19:03:41 +0000 Subject: adopt NGX_FILE_TRUNCATE for win32 --- src/os/unix/ngx_files.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 982ab12b3..c4d2b7f32 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h @@ -63,7 +63,7 @@ typedef struct { #define NGX_FILE_RDWR O_RDWR #define NGX_FILE_CREATE_OR_OPEN O_CREAT #define NGX_FILE_OPEN 0 -#define NGX_FILE_TRUNCATE O_TRUNC +#define NGX_FILE_TRUNCATE O_CREAT|O_TRUNC #define NGX_FILE_APPEND O_WRONLY|O_APPEND #define NGX_FILE_DEFAULT_ACCESS 0644 -- cgit v1.2.3