From b39b9aa59abd0d42cbe4627325d0864a9138bac7 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 24 Apr 2008 19:19:26 +0000 Subject: Cygwin O_BINARY mode --- src/os/unix/ngx_files.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (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 aa7311d72..85dae3b97 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h @@ -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 -- cgit v1.2.3