Mercurial > hg > nginx
changeset 1975:3ca17d430c9a
Cygwin O_BINARY mode
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 24 Apr 2008 19:19:26 +0000 |
parents | f32cc6df6bd6 |
children | c4d8867f0162 |
files | src/os/unix/ngx_files.h |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os/unix/ngx_files.h Wed Apr 23 18:57:25 2008 +0000 +++ b/src/os/unix/ngx_files.h Thu Apr 24 19:19:26 2008 +0000 @@ -17,8 +17,18 @@ +#ifdef __CYGWIN__ + +#define ngx_open_file(name, mode, create, access) \ + open((const char *) name, mode|create|O_BINARY, access) + +#else + #define ngx_open_file(name, mode, create, access) \ open((const char *) name, mode|create, access) + +#endif + #define ngx_open_file_n "open()" #define NGX_FILE_RDONLY O_RDONLY