mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Cygwin O_BINARY mode
This commit is contained in:
parent
439e288a1b
commit
b39b9aa59a
@ -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 New Issue
Block a user