Cygwin O_BINARY mode

This commit is contained in:
Igor Sysoev 2008-04-24 19:19:26 +00:00
parent c2fdce089d
commit a4499b0924

View file

@ -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