Cygwin O_BINARY mode
This commit is contained in:
parent
c2fdce089d
commit
a4499b0924
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue