* libc/stdio/flags.c (__sflags): Guard against using O_BINARY on systems which
do not provide it.
This commit is contained in:
parent
85bf7fcf56
commit
918ed39f09
|
@ -1,3 +1,8 @@
|
|||
2012-08-23 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||
|
||||
* libc/stdio/flags.c (__sflags): Guard against using O_BINARY on
|
||||
systems which do not provide it.
|
||||
|
||||
2012-08-21 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||
|
||||
* libc/stdio/flags.c (__sflags): Rewrite recognition of extended mode
|
||||
|
|
|
@ -69,7 +69,9 @@ _DEFUN(__sflags, (ptr, mode, optr),
|
|||
m = (m & ~O_ACCMODE) | O_RDWR;
|
||||
break;
|
||||
case 'b':
|
||||
#ifdef O_BINARY
|
||||
m |= O_BINARY;
|
||||
#endif
|
||||
break;
|
||||
#ifdef __CYGWIN__
|
||||
case 't':
|
||||
|
|
Loading…
Reference in New Issue