diff src/os/unix/ngx_files.h @ 2686:9e0ae986b587

adopt NGX_FILE_TRUNCATE for win32
author Igor Sysoev <igor@sysoev.ru>
date Wed, 08 Apr 2009 19:03:41 +0000
parents 367b29612a00
children d8316f307b6a
line wrap: on
line diff
--- 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