diff src/os/win32/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 64a10d6b97bd
children 5190c5dc3486
line wrap: on
line diff
--- a/src/os/win32/ngx_files.h
+++ b/src/os/win32/ngx_files.h
@@ -67,6 +67,7 @@ ngx_fd_t ngx_open_file(u_char *name, u_l
 
 #define NGX_FILE_CREATE_OR_OPEN     OPEN_ALWAYS
 #define NGX_FILE_OPEN               OPEN_EXISTING
+#define NGX_FILE_TRUNCATE           CREATE_ALWAYS
 
 #define NGX_FILE_DEFAULT_ACCESS     0
 #define NGX_FILE_OWNER_ACCESS       0