Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-08 23:03:41 +0400
committerIgor Sysoev <igor@sysoev.ru>2009-04-08 23:03:41 +0400
commit2ec2e35efe1bf1b704d0e9ca1fa9667d9a5a5447 (patch)
treeb91563a4b69ea5f23c6ffd217c650d0a6f7fc3c5 /src/os/unix/ngx_files.h
parent64851bb2aeef37a708ca34f74280c05cd38ad969 (diff)
adopt NGX_FILE_TRUNCATE for win32
Diffstat (limited to 'src/os/unix/ngx_files.h')
-rw-r--r--src/os/unix/ngx_files.h2
1 files changed, 1 insertions, 1 deletions
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