Klaus Demo nginx / b39b9aa
Cygwin O_BINARY mode Igor Sysoev 14 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1616
1717
1818
19 #ifdef __CYGWIN__
20
21 #define ngx_open_file(name, mode, create, access) \
22 open((const char *) name, mode|create|O_BINARY, access)
23
24 #else
25
1926 #define ngx_open_file(name, mode, create, access) \
2027 open((const char *) name, mode|create, access)
28
29 #endif
30
2131 #define ngx_open_file_n "open()"
2232
2333 #define NGX_FILE_RDONLY O_RDONLY